Skip to content

Commit 0ae2dba

Browse files
committed
feat: valid-anagram solution 복잡도 분석
1 parent 7f870fa commit 0ae2dba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

valid-anagram/YeomChaeEun.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* 알고리즘 복잡도:
3+
* - 시간복잡도: O(n)
4+
* - 공간복잡도: O(k)
5+
* @param s
6+
* @param t
7+
*/
18
function isAnagram(s: string, t: string): boolean {
29
if(s.length !== t.length) return false
310

0 commit comments

Comments
 (0)