- 博客(2)
- 收藏
- 关注
转载 [LeetCode笔记]-203-Remove Linked List Elements
删除链表中指定数值的元素,考虑头指针、返回。 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ cl...
2015-09-26 20:55:00
62
转载 [LeetCode笔记]-237-Delete Node in a Linklist
上LeetCode后做的第一道题。删除一个链表节点。两个写法。第一个8ms,第二个4ms。先这么写吧。 /** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ /* solutio...
2015-09-26 19:46:00
70
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人