码迷,mamicode.com
首页 >  
搜索关键字:merge k sorted lists    ( 11722个结果
[leetcode]Search Insert Position
Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if ...
分类:其他好文   时间:2014-08-09 18:10:28    阅读次数:178
LeetCode——Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the...
分类:其他好文   时间:2014-08-09 11:38:57    阅读次数:147
Remove Duplicates from Sorted Array
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:其他好文   时间:2014-08-08 23:52:12    阅读次数:238
[leetcode]Median of Two Sorted Arrays
Median of Two Sorted ArraysThere are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run...
分类:其他好文   时间:2014-08-08 17:33:46    阅读次数:232
svn merge
svn常用命令相信大家都非常熟悉,但是merge这个命令很多人却并不常用到,这次由于工作关系,特地学习了一下。由于开发环境是mac,没有像TortoiseSVN这么好用的svn,mac大部分的svn客户端个人觉得都不是特别好用,所以选择用svn命令行。svn merge的思想其实是diff and ...
分类:其他好文   时间:2014-08-08 17:27:06    阅读次数:248
跳表SkipList—定义
1.聊一聊跳表作者的其人其事 2. 言归正传,跳表简介 3. 跳表数据存储模型 4. 跳表的代码实现分析 5. 论文,代码下载及参考资料  . 聊一聊作者的其人其事  跳表是由William Pugh发明。他在 Communications of the ACM June 1990, 33(6) 668-676 发表了Skip lists: a probabilistic...
分类:其他好文   时间:2014-08-08 16:03:46    阅读次数:189
amazon 面经2
http://www.geeksforgeeks.org/amazon-interview-set-108-campus/F2F-1:1) Given a sorted circular link list and a pointer to random node, now insert a new...
分类:其他好文   时间:2014-08-08 04:18:25    阅读次数:248
jqGrid实现虚拟滚动和合并单元格
如图:关键点:1.scroll: 1, //虚拟滚动,解决大数据一次性加载慢的问题,同时解决分页2.function merge(names)//自定义函数$(function () { //查询 $("#querybtn").click(function () { ...
分类:其他好文   时间:2014-08-07 21:38:40    阅读次数:297
Leetcode--Merge Intervals
Problem Description: Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18]. 分析:按照要求将区间合并,首先将按照按起点排序,然后...
分类:其他好文   时间:2014-08-07 19:05:00    阅读次数:193
Add Two Numbers
题目You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a singl...
分类:其他好文   时间:2014-08-07 12:51:00    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!