https://leetcode.com/problems/length-of-last-word/Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the leng...
分类:
其他好文 时间:
2015-03-19 21:41:28
阅读次数:
120
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is...
分类:
其他好文 时间:
2015-03-19 20:25:02
阅读次数:
120
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 another array, you must do this in place with c...
分类:
其他好文 时间:
2015-03-19 20:22:41
阅读次数:
134
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note:You may assume that A has enough space (size that is greater or equa...
分类:
其他好文 时间:
2015-03-19 20:21:20
阅读次数:
116
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:
其他好文 时间:
2015-03-19 20:07:55
阅读次数:
122
问题:
在eclipse中运行java程序,去重100多万的数据,报如下错误:
java.lang.OutOfMemoryError: Java heap space
异常原因:
在JVM中如果98%的时间是用于GC且可用的 Heap size 不足2%的时候将抛出此异常信息。
JVM堆的设置是指java程序运行过程中JVM可以调配使用的内存空间的设置。JVM在启动的时候会自...
分类:
编程语言 时间:
2015-03-19 14:51:36
阅读次数:
188
Linux内核参数http://space.itpub.net/17283404/viewspace-694350net.ipv4.tcp_syncookies = 1表示开启SYN Cookies。当出现SYN等待队列溢出时,启用cookies来处理,可防范少量SYN攻击,默认为0,表示关闭;什么...
分类:
系统相关 时间:
2015-03-19 10:07:22
阅读次数:
175
http://bbs.uuu9.com/space-uid-753278.html
http://bbs.uuu9.com/thread-11335568-1-1.html
http://bbs.uuu9.com/thread-11335595-1-1.html
http://bbs.uuu9.com/thread-11335642-1-1.html
http://bbs.uuu9.com...
分类:
其他好文 时间:
2015-03-19 06:23:31
阅读次数:
165
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra space?这道...
分类:
其他好文 时间:
2015-03-18 23:06:39
阅读次数:
122
WordBreak题目Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For example, given
s = “leetcode”,
dict = [...
分类:
其他好文 时间:
2015-03-18 21:46:10
阅读次数:
127