Skip to content

Commit 5a0b4ee

Browse files
add space
1 parent 7d48120 commit 5a0b4ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reorder-list/jaejeong1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void reorderList(ListNode head) {
2525
// 풀이: 역순으로 저장할 스택에 node들을 넣고, 기존 node 1개/스택 node 1개씩 이어 붙인다
2626
// 스택은 LIFO로 저장되기 때문에, 문제에서 요구하는 순서대로 reorderList를 만들 수 있다
2727
// TC: O(N)
28-
// SC: O(2N)
28+
// SC: O(N)
2929
Stack<ListNode> stack = new Stack<>();
3030

3131
var curNode = head;

0 commit comments

Comments
 (0)