โ† PubMatic questions
CodingReported in a candidate post, Aug 2022

Shortest substring whose removal leaves unique characters

Filed under PubMatic

The question

Given a lowercase string with repeats, find the shortest substring whose removal leaves a string with only unique characters.

No write-up yet. Related questions below have one.

Related PubMatic questions

Collected from public candidate posts and coding forums. Updated Nov 2026.