Categorygithub.com/blueBlue0102/LeetCode-Goleetcode0003.Longest-Substring-Without-Repeating-Characters
package
0.0.0-20241125063422-a7e1e0bf04b0
Repository: https://github.com/blueblue0102/leetcode-go.git
Documentation: pkg.go.dev

# README

3. Longest Substring Without Repeating Characters

https://leetcode.com/problems/longest-substring-without-repeating-characters/

建立一個 Hash Map 記錄看過的字元,並記錄該字元的 index 位置
時間複雜度 $O(n)$

Takeaway