Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 279 Bytes

File metadata and controls

7 lines (4 loc) · 279 Bytes

Asked by Amazon

Question

Given a string, find the length of the smallest window that contains every distinct character. Characters may appear more than once in the window.

For example, given "jiujitsu", you should return 5, corresponding to the final five letters.