2 ms·
Sorting them lexically would be trivial. Just calculate the index via the reverse permutation, similar to how search works.
by CodesInChaos 2y ago
Sorting them lexically would be trivial. Just calculate the index via the reverse permutation, similar to how search works.