Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- leetcode
- 백준
- Kaggle
- 편스토랑 우승상품
- 자연어처리
- 더현대서울 맛집
- ChatGPT
- 프로그래머스 파이썬
- 맥북
- 파이썬
- 코로나19
- 데이콘
- Git
- Docker
- PYTHON
- SW Expert Academy
- 캐치카페
- hackerrank
- Real or Not? NLP with Disaster Tweets
- Baekjoon
- AI 경진대회
- 프로그래머스
- gs25
- ubuntu
- programmers
- 편스토랑
- dacon
- github
- 금융문자분석경진대회
- 우분투
Archives
- Today
- Total
목록
반응형
19. Remove Nth Node From End of List (1)
반응형
솜씨좋은장씨
[leetCode] 19. Remove Nth Node From End of List (Python)
Given the head of a linked list, remove the nth node from the end of the list and return its head. Follow up: Could you do this in one pass? Example 1: Input: head = [1,2,3,4,5], n = 2 Output: [1,2,3,5] Example 2: Input: head = [1], n = 1 Output: [] Example 3: Input: head = [1,2], n = 1 Output: [1] Constraints: The number of nodes in the list is sz. 1
Programming/코딩 1일 1문제
2020. 11. 16. 00:05
반응형