LeetCode Longest Substring Without Repeating Characters
Solve LeetCode 3 Longest Substring Without Repeating Characters using a sliding window with a hash map. We go from brute force to a clean O(n) sweep.
·5 min read · #dsa#leetcode#sliding-window