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
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
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
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
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
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
/*#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
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
判断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