Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:
其他好文 时间:
2014-10-21 05:43:21
阅读次数:
125
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:
其他好文 时间:
2014-10-21 02:15:19
阅读次数:
187
Description
In college, a student may take several courses. for each course i, he earns a certain credit (c i), and a mark ranging from A to F, which is comparable to a score (s i), according to th...
分类:
其他好文 时间:
2014-10-20 23:23:31
阅读次数:
260
problem: Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra sp...
分类:
其他好文 时间:
2014-10-20 22:53:53
阅读次数:
217
Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co...
分类:
其他好文 时间:
2014-10-20 18:50:54
阅读次数:
111
[Description] There is a number in each stages that indicates the most stages you can leap up. Now, giving an array which represents one kind of stair...
分类:
其他好文 时间:
2014-10-20 18:47:25
阅读次数:
164
Word Break IIGiven a string s and a dictionary of words dict, add spaces in s toconstruct a sentence where each word is a valid dictionaryword.Return ...
分类:
其他好文 时间:
2014-10-20 17:10:28
阅读次数:
466
一般都是这样用json,JSONObject传很多不同类的东西,JSONArray用来传一类数组;在action中这样:importnet.sf.json.JSONObject;publicclasstestextendsActionSupportimplementsSessionAware{privateJSONObjectjsonObject=newJSONObject();privateJSONArrayjsonArray=newJSONArray(..
分类:
Web程序 时间:
2014-10-20 15:24:47
阅读次数:
293
JQuery对数组的处理非常便捷并且功能强大齐全,一步到位的封装了很多原生js数组不能企及的功能。下面来看看JQuery数组的强大之处在哪。$.each(array, [callback]) 遍历不同于例遍 jQuery 对象的 $.each() 方法,此方法可用于例遍任何对象(不仅仅是数组哦~)....
分类:
编程语言 时间:
2014-10-19 23:00:10
阅读次数:
476
Evaluate Reverse Polish NotationValid operators are+,-,*,/. Each operand may be an integer or another expression.Some examples: ["2", "1", "+", "3", ....
分类:
其他好文 时间:
2014-10-19 22:38:48
阅读次数:
180