Skip to content

Commit edb6386

Browse files
committed
longest-substring-without-repeating-characters 주석추가
1 parent d2f737e commit edb6386

File tree

1 file changed

+2
-5
lines changed
  • longest-substring-without-repeating-characters

1 file changed

+2
-5
lines changed

longest-substring-without-repeating-characters/jdy8739.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,5 @@ var lengthOfLongestSubstring = function(s) {
2929
return max;
3030
};
3131

32-
//
33-
//
34-
35-
36-
32+
// 시간복잡도 O(2n) -> 최대 2n번 반복
33+
// 공간복잡도 O(n) -> 최대 s의 길이만큼 공간을 사용

0 commit comments

Comments
 (0)