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
- 오늘도 우라라 펫 공략
- 마리아 DB
- 기초
- install opencv-4.4.0 on ubuntu 22.04
- MSG
- while
- 리눅스
- 오늘도 우라라 펫
- 환경설정
- JungOl
- 반복문
- topic
- 그랑사가
- ros
- C언어
- 데이터 베이스
- mysql
- C++
- 등차수열
- LeetCode
- Linux
- ubuntu
- Subscribe
- 프로그래밍
- 오늘도 우라라
- 토픽
- mariaDB
- 오늘도 우라라 공략
- publish
- 우분투
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