摘要: class Solution {public: ListNode* FindFirstCommonNode( ListNode* pHead1,ListNode* pHead2) { ListNode* p1=pHead1; ListNode* p2=pHead2; while(p1!=p2) { 阅读全文
posted @ 2017-04-06 23:07 爱编程的小羊 阅读(98) 评论(0) 推荐(0) 编辑
摘要: /* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } }; */ class Solution { public: T... 阅读全文
posted @ 2017-04-06 10:45 爱编程的小羊 阅读(281) 评论(0) 推荐(0) 编辑