Skip to content

Commit 1fb9052

Browse files
committed
feat(soobing): week11 > reorder-list 내용 보완
1 parent a9bd444 commit 1fb9052

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

reorder-list/soobing.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/**
2+
* 문제 설명
3+
* - 리스트의 중간 지점을 찾아서 뒤쪽 리스트를 뒤집고, 앞쪽 리스트와 뒤쪽 리스트를 병합하는 문제
4+
* - 어려웠음 다시 풀어보기 ⚠️
5+
*
6+
* 아이디어
7+
* 1) 중간 지점 찾기
8+
* -  투 포인터 사용
9+
* - 절단할때 사이클 안생기도록 체크
10+
* 2) 뒤쪽 리스트 뒤집기
11+
* 3) 병합
12+
*/
113
class ListNode {
214
val: number;
315
next: ListNode | null;

0 commit comments

Comments
 (0)