Longest Substring Without Repeating — sliding window
Grow the window to the right. If the new letter repeats one already inside, slide the left edge in until it doesn't.
Try:
window length 0
longest so far 0