Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7Rercfj3dzDQowoFA
10 lines
539 B
Plaintext
10 lines
539 B
Plaintext
The 2015 first-pivot version (post 2530): the loop condition reads x[i] before checking i <= r
|
|
==============================================================================================
|
|
|
|
the 2015 sample [15, 48, 66, 12, 48, 74, 12, 24, 56] -> [12, 12, 15, 24, 48, 48, 56, 66, 74] (correct)
|
|
|
|
input [3, 1, 2]: ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
|
|
same input, operands of the && swapped: [1, 2, 3]
|
|
|
|
10,000 seeded random arrays (length 1..8, keys 0..19): original threw on 4,680; fixed version wrong on 0.
|