CodingEasy
K-th element in lexicographically sorted string
Filed under Amagi
The question
Given a string, return the k-th element after sorting it lexicographically and count its occurrences.
No write-up yet. Related questions below have one.
Related Amagi questions
Collected from public candidate posts and coding forums. Updated Nov 2026.