Skip to content

Commit 0b0e4ce

Browse files
committed
feat: 0003.Longest Substring Without Repeating Characters
1 parent f843d0a commit 0b0e4ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Leetcode/0003.Longest-Substring-Without-Repeating-Characters/Longest-Substring-Without-Repeating-Characters.go

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func LengthOfLongestSubstring(s string) int {
3434
}
3535

3636
// LengthOfLongestSubstringMap 用map 紀錄是否重複.
37+
// O(n)
3738
func LengthOfLongestSubstringMap(s string) int {
3839
slength := len(s)
3940
if slength == 0 || slength == 1 {

Leetcode/0003.Longest-Substring-Without-Repeating-Characters/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: "0003.Longest Substring Without Repeating Characters"
1010
license: ""
1111
images: []
1212

13-
tags: [LeetCode, Go, Medium, Longest Substring Without Repeating Characters, Sliding Window, Array]
13+
tags: [LeetCode, Go, Medium, Longest Substring Without Repeating Characters, Sliding Window, Array, Hash Table, String]
1414
categories: [LeetCode]
1515

1616
featuredImage: ""

0 commit comments

Comments
 (0)