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.
4
u/button_boxer 3h 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 2h ago
How did you do that? It looks great, I'd love to take a look at the code.
1
u/0x14f 11h ago
Nice!