Skip to content

Commit

Permalink
Fix insertion starting state
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabau committed Oct 13, 2024
1 parent fa5ffa4 commit 297ad6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gabau.github.io/src/pages/fun/SortVisPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ class InsertionSortState implements SortingState {
}

setScope(start: number, end: number) {
this.i = start;
this.currPos = start;
this.i = start + 1;
this.middleOfLoop = false;
this.end = end;
}
Expand Down

0 comments on commit 297ad6c

Please sign in to comment.