摘要:
No. 25 Reverse Nodes in k-Group (HARD) Solution: No. 26 Remove Duplicates from Sorted Array (EASY,PASS) Note: Return the length rather than the sorted 阅读全文
摘要:
No. 19 Remove Nth Node From End of List (重点) Solution: 关键点是如何定位至倒数第n个节点。如下办法: 先从head (pre in code) 开始走至前第n+1个节点item (cur in code),这样子pre跟curm就相差n,再让pr 阅读全文