题目链接:Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
Follow up:
Did you use extra space?
A straight forward solution using O(mn) spa...
分类:
其他好文 时间:
2015-03-20 22:00:08
阅读次数:
135
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-03-20 16:16:40
阅读次数:
124
定义和用法white-space 属性设置如何处理元素内的空白可能的值值描述normal默认。空白会被浏览器忽略。pre空白会被浏览器保留。其行为方式类似 HTML 中的 标签。nowrap文本不会换行,文本会在在同一行上继续,直到遇到 标签为止。pre-wrap保留空白符序列,但是正常地进行换.....
分类:
Web程序 时间:
2015-03-20 16:07:21
阅读次数:
135
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-03-20 15:58:44
阅读次数:
116
分别用box2d和chipmunk实现了一下,不过box2d没整理,也懒得整理了。chipmunk整理了一下,分享给大家吧。刚开始研究,抛砖引玉简要说明:1、初始化物理环境,增加边界initPhysics: function () { var space = this.space ; ...
分类:
Web程序 时间:
2015-03-20 15:58:01
阅读次数:
273
Sort a linked list inO(nlogn) time using constant space complexity.Hide TagsLinked ListSort 基于单项链表的排序,时间为nlogn ,O(1)空间,其实及将数组的快速排序用链表实现,并用递归来维护拆分与合并。....
分类:
编程语言 时间:
2015-03-20 14:13:30
阅读次数:
135
记录一下css文字应用overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
分类:
Web程序 时间:
2015-03-20 12:25:16
阅读次数:
127
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2015-03-20 12:19:32
阅读次数:
132
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraud求最长回文子串。http://acm.timus.ru/problem.aspx?space=1&num=1297Manacher模板题,复杂度O(n),做这题纯属是为了验一下自己写的模板是否正确。当然这...
分类:
其他好文 时间:
2015-03-20 01:22:43
阅读次数:
202
题目:
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 wit...
分类:
其他好文 时间:
2015-03-20 00:06:15
阅读次数:
175