qingcheng奕  

2013年12月3日

摘要: http://oj.leetcode.com/problems/remove-duplicates-from-sorted-list/链表的去重,要考虑链表的本质。#include using namespace std;struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} };class Solution {public: ListNode *deleteDuplicates(ListNode *head) { if(!head) ... 阅读全文
posted @ 2013-12-03 21:02 qingcheng奕 阅读(152) 评论(0) 推荐(0) 编辑