2016年9月5日

[LeetCode] 237. Delete Node in a Linked Lis解题小结

摘要: 题目: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 阅读全文

posted @ 2016-09-05 23:36 医生工程师 阅读(123) 评论(0) 推荐(0) 编辑

[LeetCode]24. Swap Nodes in Pairs

摘要: 题目: Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3. Yo 阅读全文

posted @ 2016-09-05 21:49 医生工程师 阅读(119) 评论(0) 推荐(0) 编辑

[LeetCode]160. Intersection of Two Linked Lists

摘要: 题目: Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: 判断两个链表是 阅读全文

posted @ 2016-09-05 21:04 医生工程师 阅读(102) 评论(0) 推荐(0) 编辑

导航