목록2024/02/13 (5)
미소를뿌리는감자의 코딩
[leetcode 2024/02/13] 206. Reverse Linked List
https://leetcode.com/problems/reverse-linked-list/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 1. 접근 방법 이번 문제는 노드의 방향을 반대로 하여, head를 출력하는 문제이다. save, current, before을 이용해서 노드의 .next의 방향을 반대로 바꾸어 주었다. 이런식으로 노..
코딩 테스트/leetcode
2024. 2. 13. 13:48