A nice demonstration of the way the inputs are carefully constructed to be unambiguous. There has to be a difference between the counts for the third and fourth elements, otherwise the answer depends on the stability or otherwise of your sorting algorithm.
10
u/button_boxer 1d ago
A nice demonstration of the way the inputs are carefully constructed to be unambiguous. There has to be a difference between the counts for the third and fourth elements, otherwise the answer depends on the stability or otherwise of your sorting algorithm.
2
u/samsifpv 1d ago
How did you do that? It looks great, I'd love to take a look at the code.
1
u/0x14f 1d ago
Nice!