Skip to content

Commit dad39c3

Browse files
author
chunhao
committed
fix reference error
1 parent e437d72 commit dad39c3

File tree

1 file changed

+3
-3
lines changed
  • algorithm/sorting/cycle/basic

1 file changed

+3
-3
lines changed

algorithm/sorting/cycle/basic/code.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ var writes = 0;
44
var pos;
55
var item;
66
var temp;
7-
for( cycleStart=0; cycleStart<=N-2; cycleStart++ ){
7+
for( var cycleStart=0; cycleStart<=N-2; cycleStart++ ){
88
item = D[cycleStart];
99
pos = cycleStart;
10-
for( i=cycleStart+1; i<=N-1; i++ ){
10+
for( var i=cycleStart+1; i<=N-1; i++ ){
1111
if( D[i]<item ){
1212
pos++;
1313
}
@@ -54,4 +54,4 @@ for( cycleStart=0; cycleStart<=N-2; cycleStart++ ){
5454
writes++;
5555
}
5656

57-
logger._print( 'Number of writes performed is ' + writes );
57+
logger._print( 'Number of writes performed is ' + writes );

0 commit comments

Comments
 (0)