LC-Linked List
seven_-
这个作者很懒,什么都没留下…
展开
-
<easy>LeetCode Problem -- 237. Delete Node in a Linked List
描述:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Given linked list – head = [4,5,1,9], which looks like following:4 -&gt; 5 -&gt; 1 -...原创 2018-12-27 17:53:33 · 111 阅读 · 0 评论 -
<easy>LeetCode Problem -- 206. Reverse Linked List
描述:Reverse a singly linked list.Example:Input: 1-&gt;2-&gt;3-&gt;4-&gt;5-&gt;NULLOutput: 5-&gt;4-&gt;3-&gt;2-&gt;1-&gt;NULL分析:链表经典题,给定一个单链表,求将它反转之后的链表。思路一:迭代法。可以将迭代法原创 2018-12-28 11:33:49 · 139 阅读 · 0 评论