码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
【Leetcode】Median of Two Sorted Array II
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:其他好文   时间:2014-08-20 14:01:22    阅读次数:210
linux to extract contents between patterns
参考:http://stackoverflow.com/questions/19177721/extract-lines-between-two-patterns-from-a-lfileawk '/pattern1/ {p=1}; p; /pattern2/ {p=0}' file
分类:系统相关   时间:2014-08-20 13:59:02    阅读次数:205
【Leetcode】Remove Duplicates from Sorted Array II
Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret...
分类:其他好文   时间:2014-08-20 13:53:12    阅读次数:168
【Leetcode】Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:其他好文   时间:2014-08-20 13:52:32    阅读次数:142
【Leetcode】Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t...
分类:其他好文   时间:2014-08-20 13:49:52    阅读次数:225
【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 ...
分类:其他好文   时间:2014-08-20 13:47:32    阅读次数:224
Cracking the Coding Interview 6.2
There is an 8*8 chess board in which two diagnolly opposite corners have been cut off. You are given 31 dominos, and a single domino can cover exactly...
分类:其他好文   时间:2014-08-20 12:01:32    阅读次数:236
[LeetCode] Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-08-20 11:57:22    阅读次数:198
qt二维码示例
移动终端的普及,二维码的使用越来越广泛,最近小小的研究了一下QT下二维码的使用。 二维码(Two-dimensional code),又称二维条码,它是用特定的几何图形按一定规律在平面(二维方向)上分布的黑白相间的图形,是所有信息数据的一把钥匙。在现代商业活动中,可实现的应用十分广泛,如:产品防伪/...
分类:其他好文   时间:2014-08-20 11:45:06    阅读次数:605
UVA - 11489 Integer Game (博弈)
Two players, S and T, are playing a game where they makealternate moves. S plays first. In this game, they start with an integer N. In each move, a player removesone digit from the integer and pass...
分类:其他好文   时间:2014-08-20 10:28:46    阅读次数:239
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!