2016年8月10日

lower_bound和upper_bound的实现

摘要: int lowerBound(int* nums, int numsSize, int target) { //注意left和right的初始值必须是left = 0, right = numsSzie, 因为返回的位置可能是[0,numsSize] int left = 0; int right = numsSize; int mid; while (l... 阅读全文

posted @ 2016-08-10 17:24 lakeone 阅读(280) 评论(0) 推荐(0) 编辑

链表的归并排序与快速排序

摘要: 链表数据结构 链表归并排序 基于值交换的链表快速排序 基于节点交换的链表快速排序 阅读全文

posted @ 2016-08-10 15:03 lakeone 阅读(241) 评论(0) 推荐(0) 编辑

导航