Skip to content

Commit b41449c

Browse files
committed
update Reverse Linked List Solution
1 parent 874d4b9 commit b41449c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reverse-linked-list/clara-shin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* 단일 연결리스트(Singly Linked List)의 노드 순서를 반대로 뒤집어서 리턴하기
33
* follow-up: 연결리스트는 반복적(Iterative) 또는 재귀적(Recursive)으로 뒤집을 수 있는데, 두 가지 방법 다 가능?
44
*
5-
* 반복문(Iterative) 방식
5+
* 반복문(Iterative) 방식 (✅ 실무에서 더 많이 사용한다고 함)
66
* 포인터 세 개(prev, curr, next)를 사용, 리스트를 한 번 순회하며 역방향으로 연결을 바꿈
77
* 시간복잡도: O(n), 공간복잡도: O(1)
88
*

0 commit comments

Comments
 (0)