Problem 707 is very trivial, takes time to consider. Get to familiarize with the structure of basics functions in Linkedlist
Problem 206 is typical as it uses double pointer, I shouldn't get it wrong. Remember to document the node you will use, you can't track cur.next if you don't create a new ListNode tmp, the cur already points to the pre.
Know how to write it in recursive way,very important
递归反转链表:拆解复杂问题 | 肖庆都的博客
Day 3 Linkedlist 1 P707,P206
最新推荐文章于 2024-08-25 17:36:33 发布