码迷,mamicode.com
首页 >  
搜索关键字:space reclamation    ( 18275个结果
span标签换行
span{word-break:normal;width:auto;display:block;white-space:pre-wrap;word-wrap:break-word;overflow:hidden;} white-space -- 通过HTML文档的源代码的排版方式控制页面显示文本的排...
分类:其他好文   时间:2014-07-10 00:07:38    阅读次数:332
css使用技巧
1) 网站上经常会出现用户输入一大段字符和字母以至于文字无法正常折行,把版式破坏,这样我们就要参考以下样式:word-wrap:break-word; overflow:hidden; 当然必须得有宽度属性值。2) 文字过长要出现省略号样式如下:white-space: nowrap; text-o...
分类:Web程序   时间:2014-07-09 23:51:24    阅读次数:474
LeetCode: Linked List Cycle II [142]
【题目】 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? 【题意】 给定一个单向链表,如果链表有环,则返回环开始的位置。 【思路】 仍然是维护两个指针, p1, p2, p1每次走一步, p2每次走两步 ...
分类:其他好文   时间:2014-06-29 23:59:21    阅读次数:354
LeetCode: Linked List Cycle [141]
【题目】 Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 【题意】 判断一个单向链表是否有环 【思路】 维护两个指针p1和p2,p1每次向前移动一步,p2每次向前移动两步 如果p2能够追上p1,则说明链表中存在环...
分类:其他好文   时间:2014-06-29 22:51:33    阅读次数:267
Leetcode 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...
分类:其他好文   时间:2014-06-28 09:55:50    阅读次数:205
LeetCode-Sort List(Python)
【问题】 Sort a linked list in O(n log n) time using constant space complexity. 【代码】 # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # ...
分类:编程语言   时间:2014-06-28 08:29:23    阅读次数:222
[leetcode] Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.
分类:其他好文   时间:2014-06-27 12:28:06    阅读次数:228
[再寄小读者之数学篇](2014-06-26 Logarithmical Sobolev inequality using BMO space)
$$\bex q>3\ra \sen{\n f}_{L^\infty} \leq C(q)\sez{ 1+\sen{\n f}_{BMO} \ln^\frac{1}{2}\sex{e+\sen{\n f}_{W^{1,q}}+\sen{f}_{L^\infty}} }. \eex$$ $$\bex ...
分类:其他好文   时间:2014-06-27 11:12:18    阅读次数:132
[再寄小读者之数学篇](2014-06-26 Besov space estimates)
(1) $$\bex \sen{D^k f}_{\dot B^s_{p,q}}\sim \sen{f}_{\dot B^{s+k}_{p,q}}. \eex$$ (2) $$\beex \bea &\quad s>0,\ q\in [1,\infty],\quad p_1,r_1\in [1,\in...
分类:其他好文   时间:2014-06-27 11:03:38    阅读次数:229
LeetCode 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 does not exist, return 0. Note: A word is d...
分类:其他好文   时间:2014-06-27 10:18:32    阅读次数:151
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!