Skip to content

Commit 68f8766

Browse files
committed
2 parents 4a91c11 + 265046d commit 68f8766

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

valid-anagram/GUMUNYEONG.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ var isAnagram = function (s, t) {
2424

2525
return result;
2626
};
27+
28+
// TC : O(n)
29+
// n(=s의 길이 = t의 길이) 만큼 반복 하므로 On(n)
30+
31+
// SC : O(n)
32+
// 최대크기 n(=s의 길이 = t의 길이)만큼인 객체를 생성하므로 공간 복잡도도 O(n)

0 commit comments

Comments
 (0)