Files
java-interview-lab/quick-sort/output/03-both-on-the-2015-samples.txt

12 lines
463 B
Plaintext

Both partitions on the sample inputs of the other two 2015 posts
================================================================
input: [15, 32, 45, 25, 34, 29, 14]
Lomuto: [14, 15, 25, 29, 32, 34, 45] (5 partition calls)
Hoare: [14, 15, 25, 29, 32, 34, 45] (6 partition calls)
input: [15, 48, 66, 12, 48, 74, 12, 24, 56]
Lomuto: [12, 12, 15, 24, 48, 48, 56, 66, 74] (5 partition calls)
Hoare: [12, 12, 15, 24, 48, 48, 56, 66, 74] (8 partition calls)