text-overform:ellipsis省略号/clip裁剪。 overform:hidden溢出隐藏文字。 但是text-overflow只是用来说明文字溢出时用什么方式显示,要实现溢出时产生省略号的效果,还须定义强制文本在一行内显示(white-space:nowrap)及溢出内容为隐藏(o ...
分类:
Web程序 时间:
2016-06-12 20:11:24
阅读次数:
223
题目: 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 ...
分类:
其他好文 时间:
2016-06-12 10:47:42
阅读次数:
165
题目链接:https://leetcode.com/problems/palindrome-number/
题目:
Determine whether an integer is a palindrome. Do this without extra space.
Some hints:
Could negative integers be palindromes? (ie...
分类:
其他好文 时间:
2016-06-12 03:26:28
阅读次数:
145
题目链接:https://leetcode.com/problems/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 st...
分类:
其他好文 时间:
2016-06-12 03:24:44
阅读次数:
191
原题链接:https://leetcode.com/problems/linked-list-cycle/
题目:
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
思路:
两个指针,一个移动...
分类:
其他好文 时间:
2016-06-12 03:04:17
阅读次数:
158
Word Break
Total Accepted: 89221 Total
Submissions: 347438 Difficulty: Medium
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separa...
分类:
其他好文 时间:
2016-06-12 02:42:54
阅读次数:
116
Q:
Determine whether an integer is a palindrome. Do this without extra space.
A:
这个题目说实话,我是后半句没有看懂的。。。这个without extra space不知道是不是单纯的只是不让用多余空间,如果我理解错了,希望有人能教我一下。。
我们之前解过一个回文的题目回文,感觉这题是不是简单了点,上次用的...
分类:
编程语言 时间:
2016-06-12 02:22:09
阅读次数:
205
在用AndroidStudio时出现这样的错误:
搞了半天终于找到了解决办法,但是很麻烦。就是每次创建工程后,在gradle.properties文件中加入如下代码:
org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m
然后重启工程就好了,如果想彻底解决次问题,还是觉得应该从新安装最新版的AdroidStudio.不知为什么AS老是无缘无故...
分类:
移动开发 时间:
2016-06-12 02:10:42
阅读次数:
233
整理来自 effective python 一 空白 1 使用space来标识缩进,而不是tab 2 和语法相关的每层缩进都使用4个空格 3 每行的字符数不应该超过79 4 对于多行的表达式,除了首行,其他行再缩进4个空格 5 文件中的函数和类之间用两个空行隔开 6 同一个类中,各个函数使用一个空行 ...
分类:
其他好文 时间:
2016-06-09 13:28:08
阅读次数:
349
Scale space From Wikipedia, the free encyclopedia Scale space Scale-space axioms Scale-space implementation Feature detection Edge detection Blob dete ...
分类:
其他好文 时间:
2016-06-08 23:07:49
阅读次数:
324