leetcode -Palindrome Linked ListGiven a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space? 1 /...
分类:
其他好文 时间:
2015-07-14 17:13:22
阅读次数:
82
Java堆OOM(Out-Of-Memory)异常
运行如下程序,爆出异常 java.lang.OutOfMemoryError: Java heap space
/**
* VM Args:-Xms20m -Xmx20m -XX:+HeapDumpOnOutOfMemoryError
* @author zzm
*/
public class HeapOOM {
static c...
分类:
其他好文 时间:
2015-07-14 11:37:30
阅读次数:
108
The key to this problem is to identify all the words that can be added to a line and then identify the places that require an additional space (to mak...
分类:
其他好文 时间:
2015-07-14 06:03:24
阅读次数:
108
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:
其他好文 时间:
2015-07-13 20:13:08
阅读次数:
126