Lexicographically smallest string
Filed under Directi · Also reported at CarWale, Nagarro
The question
Given a string and a set of swappable index pairs, find the lexicographically smallest string possible.
No write-up yet. Related questions below have one.
Related Directi questions
Collected from public candidate posts and coding forums. Updated Nov 2026.