Skip to main content
Userbejian29's user avatar
Userbejian29's user avatar
Userbejian29's user avatar
Userbejian29
  • Member for 9 years, 1 month
  • Last seen more than 2 years ago
awarded
Loading…
Loading…
Loading…
Loading…
comment
What is the fastest way to sort numbers lexicographically?
It is not from a programming competition. I am solving problems from SPOJ, UVA, CodeForces etc. and recently I've been doing task that required fast algorithm for comparing sequences lexicographically. Solution with quicksort was fast enough, because data wasn't big, but I wondered if there exist algorithm that could do it faster.
awarded
awarded
awarded
comment
What is the fastest way to sort numbers lexicographically?
It is the length of the longest sequence. In example above K = 3, because length of the longest sequence is 3.
Loading…
awarded