Linked List

LeetCode ๐Ÿ”๏ธ/Linked List

206. Reverse Linked List

Today, I solved the Reverse Linked List. Description: In this problem, we reverse the order of single linked list. My idea was that changing the pointer to make reverse order. So, I thought I should change like this "1->2" as a "2->1" repeatedly. In the description of the question, we can see "A linked list can be reversed either iteratively or recursively." I'm not sure about this kind of quest..

KB0129
'Linked List' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก