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 |
Tags
- C++
- 기초
- 마리아 DB
- 데이터 베이스
- 반복문
- ros
- 오늘도 우라라
- MSG
- mariaDB
- Linux
- 우분투
- 오늘도 우라라 공략
- Subscribe
- 오늘도 우라라 펫 공략
- install opencv-4.4.0 on ubuntu 22.04
- 등차수열
- 리눅스
- mysql
- JungOl
- ubuntu
- topic
- publish
- LeetCode
- 환경설정
- 토픽
- 오늘도 우라라 펫
- while
- C언어
- 그랑사가
- 프로그래밍
Archives
- Today
- Total
목록[LeetCode] 206. Reverse Linked List (1)
하루의 쉼터

Question : Reverse a singly linked list. Exapmle : 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.h #include #include #include struct ListNode { int val; ListNode* next; ListNode() : val(0), next(nullptr) {} ListNode(int x) : val(x), next(nullptr) {} ListNode(int x, ListNode* ne..
Coding Test/LeetCode
2020. 12. 6. 22:07