Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 173 Bytes

File metadata and controls

6 lines (5 loc) · 173 Bytes

sliding window

For each of the ending index j:

  • we want to find the largest starting index i where [i,j] contains all the characters

time: O(s + t)
space: O(t)