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
- github
- 프로그래머스 파이썬
- AI 경진대회
- 맥북
- 파이썬
- PYTHON
- 자연어처리
- 편스토랑
- Baekjoon
- Real or Not? NLP with Disaster Tweets
- SW Expert Academy
- gs25
- 데이콘
- Git
- 더현대서울 맛집
- 백준
- 금융문자분석경진대회
- 코로나19
- Kaggle
- hackerrank
- ubuntu
- 프로그래머스
- Docker
- ChatGPT
- dacon
- 우분투
- 편스토랑 우승상품
- 캐치카페
- leetcode
- programmers
Archives
- Today
- Total
목록
반응형
206. Reverse Linked List (1)
반응형
솜씨좋은장씨
[leetCode] 206. Reverse Linked List (Python)
Reverse a singly linked list. Example: Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? Solution # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def reverseList(self, head: ListNode) -> ListN..
Programming/코딩 1일 1문제
2020. 10. 22. 23:40
반응형