We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 905230d commit ffa5dc3Copy full SHA for ffa5dc3
longest-consecutive-sequence/grapefruitgreentealoe.js
@@ -96,4 +96,4 @@ while을 썼지만, for문의 첫번째 if문을 통해 실제 수행은 O(n)의
96
이 외에도, set으로 만든 다음에 삭제해가면서(while) 순회가 아닌, 왼쪽 오른쪽값들을 연속적으로(while) 지우고, 연속이 끝나면 pop에서 나온 값의 left right를 조회해서 없으면 다시 최대값과 비교하는 방식이 있다.
97
근데 위의 코드에서 has로 조회하나, remove를 하려면 어차피 또 조회해야하니,
98
성능상의 차이는 크게 없는 것 같다.
99
-*/
+*/
0 commit comments