Files

25 lines
982 B
Plaintext

java download/QuickSort.java, with the sample inputs of the three 2015 posts
============================================================================
session: 7 elements (post 2559)
Enter the size of array: Enter 7 elements (one per line):
Before: [15, 32, 45, 25, 34, 29, 14]
Lomuto: [14, 15, 25, 29, 32, 34, 45]
Hoare: [14, 15, 25, 29, 32, 34, 45]
Randomized: [14, 15, 25, 29, 32, 34, 45]
session: 9 elements with duplicates (post 2530)
Enter the size of array: Enter 9 elements (one per line):
Before: [15, 48, 66, 12, 48, 74, 12, 24, 56]
Lomuto: [12, 12, 15, 24, 48, 48, 56, 66, 74]
Hoare: [12, 12, 15, 24, 48, 48, 56, 66, 74]
Randomized: [12, 12, 15, 24, 48, 48, 56, 66, 74]
session: 6 elements (post 2531)
Enter the size of array: Enter 6 elements (one per line):
Before: [15, 34, 26, 67, 95, 24]
Lomuto: [15, 24, 26, 34, 67, 95]
Hoare: [15, 24, 26, 34, 67, 95]
Randomized: [15, 24, 26, 34, 67, 95]