Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb87e326

Browse files
haalogentrekhleb
authored andcommitted
Fix performance measuring code bug (trekhleb#313)
1 parent8ab965b commitb87e326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/algorithms/sorting/quick-sort/QuickSortInPlace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class QuickSortInPlace extends Sort {
4646

4747
constpivot=array[highIndex];
4848
// visitingCallback is used for time-complexity analysis.
49-
this.callbacks.visitingCallback(array[pivot]);
49+
this.callbacks.visitingCallback(pivot);
5050

5151
letpartitionIndex=lowIndex;
5252
for(letcurrentIndex=lowIndex;currentIndex<highIndex;currentIndex+=1){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp