题目描述:(链接)Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last...
分类:
其他好文 时间:
2015-11-04 17:17:48
阅读次数:
221
最近网页布局中遇到得比较多,所以打算总结总结。word-wrap:1.normal(使用浏览器默认的换行规则) 2.break-word(内容将在边界内换行,但是英文换行会按词断句)word-break:1.break-all(无论中英文都可以直接在单词内断句)2.keep-all(只能在半角空格或...
分类:
其他好文 时间:
2015-11-04 14:23:57
阅读次数:
295
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-11-04 13:01:19
阅读次数:
144
注:Command即苹果键,也有人称为花键。Ctrl即control键。Escape即键盘左上角的esc键。Space空格键。 在x86版中: win键 = 花键 ctrl键 ? = Ctrl^键 Alt 键 = Option shift 键 = shift 屏幕捕捉快捷键 动作…...
分类:
系统相关 时间:
2015-11-04 11:39:58
阅读次数:
243
问题描述Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are th...
分类:
其他好文 时间:
2015-11-04 00:36:46
阅读次数:
214
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?判断一个链表是否存在环,维护快慢指针就可以,如果有环那么快指针一定会追上慢指针,代码...
分类:
其他好文 时间:
2015-11-04 00:32:06
阅读次数:
212
参考文献:维基百科a simple-to-compute transformation of the 1931CIE XYZ color space, but which attemptedperceptual uniformityused for applications such as comp...
分类:
其他好文 时间:
2015-11-02 21:10:04
阅读次数:
167
键盘无法输入问题:1.输入法不对。ctrl+space 将输入法有中文调为英文。2.非法暴力关闭VNC,导致服务器有僵死进程,端口被占用。ps -ef | grep vnc利用上面命令 搜索VNC PID号。杀死僵死进程。重新运行VNC打开流程。
分类:
其他好文 时间:
2015-11-02 15:25:59
阅读次数:
802
一.单行文本的溢出显示省略号(通用)text-overflow 属性规定当文本溢出包含元素时发生的事情。ellipsis显示省略符号来代表被修剪的文本。white-space 属性设置如何处理元素内的空白符。nowrap表示文本不会换行,文本会在在同一行上继续,直到遇到 标签为止。.one { .....
分类:
移动开发 时间:
2015-11-02 13:48:55
阅读次数:
1236
more类似cat,不过more不是将整个文件内容从上到下显示在屏幕上的,而是以一页一页的显示方便使用者逐页阅读。more最基本的指令就是space即往下翻一页,b即往回翻一页显示,而且还有搜索字符串的功能+n:从第n行开始显示-n:定义屏幕大小为n行+/pattern:在每个档案显示前搜索该字符串...
分类:
Web程序 时间:
2015-11-01 22:46:14
阅读次数:
376