码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
CC150 - 11.5
Question:Given a sorted array of strings which is interspersed with empty strings, write a method to find the location of a given string. 1 package P....
分类:其他好文   时间:2014-08-23 15:09:11    阅读次数:179
Remove Duplicates from Sorted List II
Remove Duplicates from Sorted List II  Total Accepted: 17137 Total Submissions: 69046My Submissions Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only d...
分类:其他好文   时间:2014-08-23 14:00:40    阅读次数:187
LeetCode——Search a 2D Matrix
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left to right.The first integer of each...
分类:其他好文   时间:2014-08-23 12:44:30    阅读次数:211
compute Binomial Coefficient or combinations with dynamic programming
The ProblemWrite a function that takes two parameters n and k and returns the value of Binomial Coefficient C(n, k).For example, your function should ...
分类:其他好文   时间:2014-08-23 12:41:20    阅读次数:169
Remove Duplicates from Sorted Array II
Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?For example,Given sorted array A = [1,1,1,2,2,3],Your function should r...
分类:其他好文   时间:2014-08-23 11:18:00    阅读次数:167
Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for...
分类:其他好文   时间:2014-08-23 11:14:10    阅读次数:219
Edit Distance (or Levenshtein Distance) python solution for leetcode EPI 17.2
https://oj.leetcode.com/problems/edit-distance/Edit DistanceGiven two wordsword1andword2, find the minimum number of steps required to convertword1tow...
分类:编程语言   时间:2014-08-23 09:56:50    阅读次数:213
poj 1580 String Matching(比较字符串的相似程度,四个for循环即可)
String Matching Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 3717   Accepted: 1913 Description It's easy to tell if two words are identical - just check t...
分类:其他好文   时间:2014-08-23 08:50:50    阅读次数:219
String Matching(poj1580)
/*String Matching Description It's easy to tell if two words are identical - just check the letters. But how do you tell if two words are almost identical? And how close is "almost"?  There...
分类:其他好文   时间:2014-08-23 02:24:09    阅读次数:171
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-23 02:15:59    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!