Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7Rercfj3dzDQowoFA
12 lines
463 B
Plaintext
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)
|
|
|