码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
HUD 1501 Zipper(记忆化 or DP)
Problem DescriptionGiven three strings, you are to determine whether the third string can be formed by combining the characters in the first two strin...
分类:其他好文   时间:2014-08-18 17:46:52    阅读次数:244
Median of Two Sorted Arrays
①原题 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 O(log (m+n)). ②乡村英语翻译一下 给你两个...
分类:其他好文   时间:2014-08-18 16:40:32    阅读次数:155
HDU-4947-GCD Array(树状数组+莫比乌斯反演)
Problem Description Teacher Mai finds that many problems about arithmetic function can be reduced to the following problem: Maintain an array a with index from 1 to l. There are two kinds of ope...
分类:其他好文   时间:2014-08-18 16:26:42    阅读次数:248
Edit Distance || 计算字符串相似度
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)...
分类:其他好文   时间:2014-08-18 16:21:57    阅读次数:148
Berserk Rook
Berserk RookAs you may know,chessis an ancient game for which almost everyone has at least a basic understanding of the rules. Chess is a two-player s...
分类:其他好文   时间:2014-08-18 15:45:02    阅读次数:179
uvalive 3231
3231 - Fair ShareAsia - Seoul - 2004/2005You are given N processors and M jobs to be processed. Two processors are specified to each job. To processth...
分类:其他好文   时间:2014-08-18 14:14:32    阅读次数:278
Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".分析:该题需要注意的地方:1)两个string的长度可能不同 2)近位借鉴leetcode-c...
分类:其他好文   时间:2014-08-18 14:13:42    阅读次数:167
Google Code Jam 2012 Practice - Store Credit
Problem You receive a credit C at a local store and would like to buy two items. You first walk through the store and create a list L of all available items. From this list you would like to buy tw...
分类:其他好文   时间:2014-08-18 12:42:04    阅读次数:222
[LeetCode] Edit Distance(很好的DP)
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have t...
分类:其他好文   时间:2014-08-18 12:20:34    阅读次数:148
N-Queens
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other....
分类:其他好文   时间:2014-08-18 10:51:34    阅读次数:121
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!