题目链接 Write a function to find the longest common prefix string amongst an array of strings. 题目的意思说的不是很清楚,开始理解成了求任意两个字符串的前缀中的最长者。但是本题的意思是求所有字符串的最长公共前缀,...
分类:
其他好文 时间:
2014-07-21 09:14:25
阅读次数:
225
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2014-07-21 09:14:10
阅读次数:
168
Hadoop 1.x版本不支持FileSystem的append操作,而需要升级到Hadoop 2.x,否则会报异常:org.apache.hadoop.ipc.RemoteException: java.io.IOException: Append is not supported. Please...
分类:
移动开发 时间:
2014-07-21 09:13:27
阅读次数:
1094
#include #include #include using std::cout;class Grand{ private: int hold; public: Grand(int h=0):hold(h){} virtual void Speak() const {cout Speak(...
分类:
其他好文 时间:
2014-07-21 09:12:31
阅读次数:
232
寂寞。 一个人早起晚睡不难,但在一群晚起早睡的人中早起晚睡不简单。 没人陪你占座,没人陪你背书,没人陪你写作。学习就是孤独的。 食堂,寝室,教室,你就只能去这三个地方 厕所你都要算好时间再去 没人经常短信你,没人经常鼓励你,没人一直关注你 不管是打雷下雨下雹子还是刀子。都要早起前行去学习,你的伙伴....
分类:
其他好文 时间:
2014-07-20 21:35:39
阅读次数:
241
var db:NotesDatabase=session.getCurrentDatabase();var doc:NotesDocument=db.getDocumentByUNID('80E2193C517E9B3A872578D90018D92E');var valString:String ...
分类:
其他好文 时间:
2014-07-20 21:34:56
阅读次数:
233
hasLayout: IE独有CSS渲染引擎。ie下很多bug都因为没有触发hasLaayout而引起。触发hasLayout的方法有:width\height\position:relative或height:1%。但会出现一些副作用。于是,完美的解决方案:zoom:1;当然:zoom:1在极其复...
分类:
Web程序 时间:
2014-07-20 21:34:20
阅读次数:
272
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-07-20 21:32:55
阅读次数:
250
Stoer-Wagner算法基本思想:如果能求出图中某两个顶点之间的最小割,更新答案后合并这两个顶点继续求最小割,到最后就得到答案。算法步骤:-------------------------------------------------------------------------------...
分类:
其他好文 时间:
2014-07-20 21:32:41
阅读次数:
211
iOS开发中,发现UITextView没有想UITextField中textFieldShouldReturn:这样的方法,那么要实现UITextView return键隐藏键盘,可以通过判断输入的字符是不是回车符来实现。首先,声明要实现UITextView 的delegate。@interface...
分类:
其他好文 时间:
2014-07-20 21:31:57
阅读次数:
224