Revert "Sorting time complexity" · odingit/AlgorithmVisualizer@84ddbaf · GitHub
Skip to content

Commit 84ddbaf

Browse files
committed
Revert "Sorting time complexity"
1 parent f86e3d4 commit 84ddbaf

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

algorithm/sorting/bubble/basic/code.js

Lines changed: 1 addition & 1 deletion

algorithm/sorting/quick/basic/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ function partition(low, high) {
1717
var temp;
1818

1919
for (var j = low; j < high; j++) {
20-
tracer._notify(i, j);
2120
if (D[j] <= pivot) {
2221
temp = D[i];
2322
D[i] = D[j];
2423
D[j] = temp;
24+
tracer._notify(i, j);
2525
i++;
2626
}
2727
}

algorithm/sorting/selection/basic/code.js

Lines changed: 5 additions & 3 deletions

0 commit comments

Comments
 (0)