source insight快捷键及使用技巧退出程序 : Alt+F4重画屏幕 : Ctrl+Alt+Space完成语法 : Ctrl+E复制一行 : Ctrl+K恰好复制该位置右边的该行的字符 : Ctrl+Shift+K复制到剪贴板 : Ctrl+Del剪切一行 : Ctrl+U剪切该位置右边的...
分类:
其他好文 时间:
2014-11-23 17:13:18
阅读次数:
157
Determine whether an integer is a palindrome. Do this without extra space.因为都额外空间有限制所以不能把他先转成字符串然后用两个指针扫了。负数不算回文数是因为前面多了个负号么=_= 这样的话我只能想到一个办法,就是反转一个数字...
分类:
其他好文 时间:
2014-11-23 11:38:33
阅读次数:
176
合并两个有序数组,放在A中,A中的空间足够。Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size th...
分类:
其他好文 时间:
2014-11-22 01:56:43
阅读次数:
209
text-overflow: ellipsis;该属性用于定义文本溢出的显示方式css代码:.textEllipsis { overflow: hidden !important; white-space: nowrap !important; text-overflow: ell...
分类:
Web程序 时间:
2014-11-21 17:53:11
阅读次数:
197
目录:
1、题目及分析
1.1 题目
1.2 分析
1、题目及分析
1.1 题目:
Sort a linked list in O(n log n)
time using constant space complexity.
1.2 分析
O(n log n)的复杂度,所以不能采用冒泡等,这里采用合并排序算法,且为了不采用递归的方式,...
分类:
其他好文 时间:
2014-11-21 16:17:51
阅读次数:
138
here we just want to divide a simple string with blank space within it , such as " hello world " .char buff[256]=" hello world ";and we have two gene....
分类:
其他好文 时间:
2014-11-21 16:05:21
阅读次数:
186
Styles: table{ table-layout:fixed; } table td{ text-overflow:ellipsis;overflow:hidden;white-space: nowrap; }
分类:
其他好文 时间:
2014-11-21 14:05:01
阅读次数:
279
a{ display: block; /*定义显示形式*/ overflow: hidden; /*截取超出字符*/ text-overflow: ellipsis; /*超出字符以…代替*/ white-space: nowrap; ...
分类:
Web程序 时间:
2014-11-21 12:00:40
阅读次数:
212