This might be a silly one but i’d appreciate any advice.
i tried to run the code in DutchNationalFlagSlowInplace.java
on the input -
BRBWBRW
with pivot=5 ®
and the output was
RRBBWWB
which is definitely not the desired output in this case.
Am I missing something ?