运行mvn eclipse:eclipse时,经常会出现因为maven项目过大,导致内存不足java栈溢出的error,需要更改MAVEN启动内存http://stackoverflow.com/questions/2819853/setting-java-heap-space-under-mave...
分类:
其他好文 时间:
2015-06-03 11:38:56
阅读次数:
138
昨天下午遇到一个奇怪的问题。首先是磁盘满了,导致我没有办法保存数据,(我把nagios磁盘监控关了,客户反馈我才知道磁盘满了),我就随手清理了一下数据。接着遇到了第二个问题,网站验证码老是提示错误;紧接着遇到了第三个问题,编辑定时任务提示crontab:installingnewcron..
分类:
其他好文 时间:
2015-06-03 10:07:59
阅读次数:
171
This is a fundamental and yet classic problem. I share my three solutions here:Iterative solution using stack ---O(n)time andO(n)space;Recursive solut...
分类:
其他好文 时间:
2015-06-03 00:54:17
阅读次数:
101
This is a fundamental and yet classic problem. I share my three solutions here:Iterative solution using stack ---O(n)time andO(n)space;Recursive solut...
分类:
其他好文 时间:
2015-06-03 00:49:25
阅读次数:
132
This is a fundamental and yet classic problem. I share my three solutions here:Iterative solution using stack ---O(n)time andO(n)space;Recursive solut...
分类:
其他好文 时间:
2015-06-03 00:46:35
阅读次数:
131
转载链接:http://blog.sciencenet.cn/home.php?mod=space&uid=471807&do=blog&id=616838 最近碰到在word文档中用mathtype插入公式后导致正文间距过大的问题,苦恼了很久,差点就要改用latex了,但最终找到了解决办法。在网....
分类:
其他好文 时间:
2015-06-02 19:26:43
阅读次数:
231
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
基本思路:
快慢两指针。
一个指针每次移动一步,另一个指针每次移动两步。如存在环,必有相遇的时候。
/**
* Definition for singly-li...
分类:
其他好文 时间:
2015-06-02 17:57:11
阅读次数:
89
No.58 Length of Last WordGiven a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the st...
分类:
其他好文 时间:
2015-06-02 17:43:29
阅读次数:
88
Linked List Cycle II
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?
解题思路:
1、解法1,用se...
分类:
其他好文 时间:
2015-06-02 11:20:46
阅读次数:
100
Determine whether an integer is a palindrome. Do this without extra space.
本题是判断一个数是否是回文数。
代码如下:
bool isPalindrome(int x) {
int max = x;
int min = 0;
while(max >0){
...
分类:
其他好文 时间:
2015-06-02 09:26:12
阅读次数:
102