Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2015-05-22 00:26:19
阅读次数:
101
使用myeclipse启动tomcat 报java heap space ,PermGen space 错误,分别为 heap内存不足,PermGen内存不足需加大 tomcat启动项参数 Xmx 和XX:MaxPermSizePermGen是指内存的永久保存区域,它用于存放class和 metho...
分类:
编程语言 时间:
2015-05-21 19:28:27
阅读次数:
267
http://www.educity.cn/wenda/351088.html使用jacob组件造成的内存溢出解决方案(java.lang.OutOfMemoryError: Java heap space) 都说内存泄漏是C++的通病,内存溢出是Java的硬伤,这个头疼的问题算是让我给碰到了。我....
分类:
编程语言 时间:
2015-05-21 01:17:37
阅读次数:
214
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?分析:...
分类:
其他好文 时间:
2015-05-20 23:35:35
阅读次数:
176
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?分析:用map记录是否出现过。用时:60ms 1 /** 2 * Definiti....
分类:
其他好文 时间:
2015-05-20 22:07:14
阅读次数:
145
grep - n ' a[[:space:]]b'就能搜索到 'a b'类似的字符了
分类:
其他好文 时间:
2015-05-20 22:06:49
阅读次数:
139
Java?HotSpot(TM)?64-Bit?Server?VM?warning:?Insufficient?space?for?shared?memory?file:
???/tmp/hsperfdata_root/85760
Try?using?the?-Djava.io.tmpdir=?option?to?select?an?alterna...
分类:
其他好文 时间:
2015-05-20 16:35:27
阅读次数:
164
实现顺序表的基本操作,包括顺序表的建立,查找,求长度,查找前驱,插入,删除,输出等函数
#include
#include
#include
using namespace std;
#define OK 1
#define ERROR 0
#define OVERFLOW -1
#define List_INIT_SPACE 100 //存储空间初始分配量
#define Li...
分类:
其他好文 时间:
2015-05-20 13:14:18
阅读次数:
229
Given a BST, find 2 nodes in it which sum to a given targethint:Inorder traversal + BST + 2 SUM* Time : O(N)* Space: O(lgN) 1 class TreeNode0 { 2 ...
分类:
其他好文 时间:
2015-05-20 13:03:34
阅读次数:
188
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-05-20 08:15:30
阅读次数:
133