I've done some quick testing and it appears so, but I'm curious if this can be relied upon.
That is, will a sorted array, once partitioned, result in two sorted arrays?
That is, will a sorted array, once partitioned, result in two sorted arrays?
Yep. It should.
Would you accept a PR adding this guarantee into the documentation and a test ensuring it stays that way? @jdalton
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Would you accept a PR adding this guarantee into the documentation and a test ensuring it stays that way? @jdalton