码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
hdu1102 Constructing Roads (简单最小生成树Prim算法)
Problem DescriptionThere are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to e...
分类:其他好文   时间:2014-08-23 15:15:40    阅读次数:234
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
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
UVA - 1350 Pinary (递推)
Description ``Pinary" number is a positive number using only two digits ``0" and ``1" with usual rule that it must not begin with a 0, and the additional rule that two successive digits must not be...
分类:其他好文   时间:2014-08-22 21:16:19    阅读次数:237
leetcode之add two numbers
/*#include using namespace std;  *//** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ cla...
分类:其他好文   时间:2014-08-22 19:46:39    阅读次数:147
leetcode之Container With Most Water 和Trapping Rain Water
Container With Most Water   Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line...
分类:移动开发   时间:2014-08-22 16:17:59    阅读次数:208
jquery 常用的表单元素控制
判断radio是否选中并取得选中的值 One:$("input[name='items']:checked").val(); Two:function checkradio(){ var item = $(":radio:checked"); var len=item.length; if(len>...
分类:Web程序   时间:2014-08-22 16:01:58    阅读次数:242
控制台笔记
$0 ~ $4 最近选中的元素(审查元素)。$$(selector) 相当于 querySelectAll(selector)clear() 清理控制台dir(object) 输出对象的所有属性keys(obj) 输出对象的所有属性名keys({'one':1,'two':2})//["one", ...
分类:其他好文   时间:2014-08-22 10:40:25    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!