Skip to content

Latest commit

 

History

History

13-10-2022 Amazon

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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.