码迷,mamicode.com
首页 >  
搜索关键字:space    ( 18273个结果
Java for LeetCode 063 Unique Paths II
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:编程语言   时间:2015-05-16 00:01:23    阅读次数:205
Java for LeetCode 058 Length of Last Word
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 ...
分类:编程语言   时间:2015-05-15 21:14:13    阅读次数:148
Remove Duplicates from Sorted Array
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...
分类:其他好文   时间:2015-05-15 13:30:25    阅读次数:104
leetcode之Length of Last Word
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-15 13:30:22    阅读次数:116
【Recover Binary Search Tree】cpp
题目:Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space ...
分类:其他好文   时间:2015-05-14 23:37:22    阅读次数:159
Set Matrix Zeroes
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A s...
分类:其他好文   时间:2015-05-14 23:19:26    阅读次数:148
css截取字符串,实现标题过长用。。。。代替
list .ad_title {     float: left;     overflow: hidden;     text-overflow: ellipsis;     white-space: nowrap;     width: 220px; } 效果如图:...
分类:Web程序   时间:2015-05-14 18:48:40    阅读次数:385
sed去除行首空格
行首空格删除sed -r 's/^\s+//g' 514.txtsed -e 's/^\s*//g' 514.txtsed 's/^ *//' 514.txt sed 's/^[[:space:]]*//' 514.txt awk '{sub(/^[ \t]+/, "")};1' 514.txt全部...
分类:其他好文   时间:2015-05-14 16:00:41    阅读次数:100
Linux环境下Tomcat运行报错java.lang.OutOfMemoryError
va.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "http-bio-8080-exec-5" java.lang.OutOfMemoryError: PermGen space 进入Tomcat中的/bin/catalina.sh? 在catalina.sh中添加如下...
分类:编程语言   时间:2015-05-14 12:26:33    阅读次数:202
Remove Duplicates from Sorted Array
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 con...
分类:其他好文   时间:2015-05-13 21:52:23    阅读次数:178
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!