摘要: 单链表的操作 阅读全文
posted @ 2017-10-24 22:00 绿宝宝怪 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 203. Remove Linked List Elements Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 阅读全文
posted @ 2017-10-24 19:41 绿宝宝怪 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 141. Linked List Cycle Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? 快慢指针 阅读全文
posted @ 2017-10-24 18:58 绿宝宝怪 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 21. Merge Two Sorted Lists Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of th 阅读全文
posted @ 2017-10-24 18:43 绿宝宝怪 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 83. Remove Duplicates from Sorted List Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1- 阅读全文
posted @ 2017-10-24 18:29 绿宝宝怪 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 206. Reverse Linked List Reverse a singly linked list. Hint: A linked list can be reversed either iteratively or recursively. Could you implement both 阅读全文
posted @ 2017-10-24 17:00 绿宝宝怪 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 237. Delete Node in a Linked List 思路:用node节点的下一个节点来覆盖node节点,然后删除node的下一个节点 阅读全文
posted @ 2017-10-24 16:06 绿宝宝怪 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 函数传值 例1: 例2: 阅读全文
posted @ 2017-10-24 12:55 绿宝宝怪 阅读(228) 评论(0) 推荐(0) 编辑
#site_nav_under,#ad_under_post_holder,#under_post_news,#google_ad_c2,#under_post_kb{ width:0; height:0; display:none; overflow:hidden; }