2016年4月15日

数字在排序数组中出现的次数

摘要: class Solution { public: int lowindex(vector&data,int k,int low,int high) { if(lowk) return lowindex(data,k,low,mid-1); if(data[mid]&data,int k,int... 阅读全文

posted @ 2016-04-15 11:36 RenewDo 阅读(124) 评论(0) 推荐(0) 编辑

两个链表的第一个公共结点

摘要: class Solution { public: ListNode* FindFirstCommonNode( ListNode *pHead1, ListNode *pHead2) { if(!pHead1||!pHead2) return NULL; int len1=0,len2=0; ListNode* p1=pHe... 阅读全文

posted @ 2016-04-15 09:47 RenewDo 阅读(68) 评论(0) 推荐(0) 编辑

导航