Skip to content

Commit da5385c

Browse files
committed
valid-anagram sol
1 parent bddaee7 commit da5385c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

valid-anagram/oyeong011.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ class Solution {
99
}
1010
};
1111

12+
// 문자열 비교 unordered_map은 해쉬 형태이므로 O(1)
13+
// 각 문자 루프 O(n)
14+
// 마지막 문자 비교 해시멥 알파벳은 26개 이므로 O(n)
15+
// 따라서 O(n)

0 commit comments

Comments
 (0)