All Questions
1 question
4
votes
1
answer
124
views
Minimal substring with all characters contained in string
I was given following task in the interview:
Given a string, find shortest substring in it that contains all of the different characters contained in the original string.
Here is my solution in ...