Isolate characters in string lexicographically with cost
Filed under Amazon
The question
Given a string representing covid patients, isolate and remove each character in lexicographical order where the cost of each isolation equals the index value of the character.
No write-up yet. Related questions below have one.
Related Amazon questions
Collected from public candidate posts and coding forums. Updated Nov 2026.