링크드리스트
![206 Reverse Linked List [LeetCode]](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbaEoNw%2Fbtsv7Uidvwc%2FAAAAAAAAAAAAAAAAAAAAAGgrK1ot6c8cNwRsVTh3IkbeDPuNmD1ok4SQ9xDz6XaS%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DEwEGbtM5rM%252BHrhFhtRcpsbL2pV4%253D)
206 Reverse Linked List [LeetCode]
206 Reverse Linked List Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: Input: head = [1,2,3,4,5] Output: [5,4,3,2,1] Example 2: Input: head = [1,2] Output: [2,1] Example 3: Input: head = [] Output: [] Constraints: The number of nodes in the list is the range [0, 5000]. -5000