摘要: Iclass Solution {public: ListNode *deleteDuplicates(ListNode *head) { if(head==NULL)return NULL; ListNode *p=head; while(p&&p->next) { ListNode *q=p->next; if(q->val==p->val) { if(q->next) { p->... 阅读全文
posted @ 2013-05-25 21:47 代码改变未来 阅读(161) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */class Solution {public:vector<int>v1;vector<vector<int>>v;int countsum; vector<vector<int> > pathSum(TreeNo 阅读全文
posted @ 2013-05-25 21:34 代码改变未来 阅读(565) 评论(0) 推荐(0) 编辑