码迷,mamicode.com
首页 >  
搜索关键字:space    ( 18273个结果
LeetCode --- 73. Set Matrix Zeroes
题目链接: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
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-03-20 16:16:40    阅读次数:124
CSS white-space 属性
定义和用法white-space 属性设置如何处理元素内的空白可能的值值描述normal默认。空白会被浏览器忽略。pre空白会被浏览器保留。其行为方式类似 HTML 中的 标签。nowrap文本不会换行,文本会在在同一行上继续,直到遇到 标签为止。pre-wrap保留空白符序列,但是正常地进行换.....
分类:Web程序   时间:2015-03-20 16:07:21    阅读次数:135
[LeetCode] 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-03-20 15:58:44    阅读次数:116
使用cocos2d-js-3.0RC1中的物理引擎chipmunk模拟的“别碰钉子”源码分享(含碰撞检测)
分别用box2d和chipmunk实现了一下,不过box2d没整理,也懒得整理了。chipmunk整理了一下,分享给大家吧。刚开始研究,抛砖引玉简要说明:1、初始化物理环境,增加边界initPhysics: function () { var space = this.space ; ...
分类:Web程序   时间:2015-03-20 15:58:01    阅读次数:273
[LeetCode] Sort List 排序 sort
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文字不换行加省略号
记录一下css文字应用overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
分类:Web程序   时间:2015-03-20 12:25:16    阅读次数:127
Palindrome Number
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
ural 1297 Palindrome(Manacher模板题)
转载请注明出处: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
Leetcode: 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 wit...
分类:其他好文   时间:2015-03-20 00:06:15    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!