File tree 1 file changed +4
-4
lines changed
src/com/jwetherell/algorithms 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2347,7 +2347,7 @@ private static <T extends Comparable<T>> boolean testJavaCollection(Collection<T
2347
2347
return false ;
2348
2348
}
2349
2349
}
2350
- /*
2350
+
2351
2351
unsortedCount ++;
2352
2352
{ // UNSORTED: Add in reverse (from index length-1 to zero) order and then remove in order (from index zero to length)
2353
2353
beforeMemory = 0L ;
@@ -2431,7 +2431,7 @@ private static <T extends Comparable<T>> boolean testJavaCollection(Collection<T
2431
2431
return false ;
2432
2432
}
2433
2433
}
2434
- */
2434
+
2435
2435
long sortedCount = 0 ;
2436
2436
2437
2437
long addSortedTime = 0L ;
@@ -2532,7 +2532,7 @@ private static <T extends Comparable<T>> boolean testJavaCollection(Collection<T
2532
2532
return false ;
2533
2533
}
2534
2534
}
2535
- /*
2535
+
2536
2536
sortedCount ++;
2537
2537
{ // SORTED: Add in order (from index zero to length) and then remove in reverse (from index length-1 to zero) order
2538
2538
beforeMemory = 0L ;
@@ -2622,7 +2622,7 @@ private static <T extends Comparable<T>> boolean testJavaCollection(Collection<T
2622
2622
return false ;
2623
2623
}
2624
2624
}
2625
- */
2625
+
2626
2626
if (testResults [testIndex ] == null ) testResults [testIndex ] = new long [6 ];
2627
2627
testResults [testIndex ][0 ] += addTime / unsortedCount ;
2628
2628
testResults [testIndex ][1 ] += removeTime / unsortedCount ;
You can’t perform that action at this time.
0 commit comments