반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- html
- 밤비노
- jsp
- C
- microservices
- DB
- 웹개발기초
- 안드로이드
- BCIT
- 코드잇
- jvm메모리구조
- two pointers
- job
- Programming
- MVC
- servlet
- CSS
- SpringFramework
- 웹개발자
- Bambino
- 리액트프로젝트
- coding test
- 자바
- Java
- 데이터베이스
- sql
- MSA
- mysql
- msa개념
- 웹개발
Archives
- Today
- Total
목록Remove Nth Node From End of List (1)
초보 개발자의 기록
[Two Pointers] Remove Nth Node from End of List
Remove Nth Node from End of List ProblemStatementGiven a singly linked list, remove the n^th node from the end of the list and return its head.ConstraintsThe number of nodes in the list is k.1≤1≤ k ≤10^3−10^3≤ Node.data ≤10^31≤ n ≤ kApproaches1. Set two pointers, right and left, at the head of the linked list.2. Move the right pointer n steps forward.3. Move both the right and left pointers forw..
Coding Test
2025. 2. 1. 10:43