摘要:
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 -> 3 - 阅读全文
posted @ 2016-04-05 23:17
李杨阳
阅读(129)
评论(0)
推荐(0)
摘要:
注意是sorted,两个以排序好的。主要区分情况就能做完 class Solution {public: ListNode* mergeTwoLists(ListNode* l1, ListNode* l2) { if(l1 == NULL) { return l2; } if(l2 == NULL 阅读全文
posted @ 2016-04-05 22:29
李杨阳
阅读(134)
评论(0)
推荐(0)

浙公网安备 33010602011771号