Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?题目意...
分类:
其他好文 时间:
2014-08-29 12:44:37
阅读次数:
256
代码: overflow: hidden; white-space: nowrap; text-overflow: ellipsis; 重点代码:text-overflow: ellipsis; 解释:简单理解就是我要把文本限制在一行(white-space: nowrap;),肯定这一行是有限制的...
分类:
Web程序 时间:
2014-08-29 10:51:07
阅读次数:
229
1. 8G+ U盘一个。2. App Store 下载Maverics到本地(默认会下载到Applications)2. 打开Mac OS 磁盘工具(Disk Utility),左侧选中U盘,在右侧打开“抹掉”(Erase)面板。 格式/Format:Mac OS 扩展/Mac OS Extend....
分类:
其他好文 时间:
2014-08-29 10:43:37
阅读次数:
151
我们可以使用快捷键的操作来快速选中B3单元格所在的整行或整列,操作方法如下,请大家参阅! 一、正规的快捷键操作 ①快速选中整行 按下键盘上的 Shift Space 即同时按下键盘上的Shift 空格键,这样,就能快速选中B3所在行的整行了。 操作方法注意,可先按下Shift不放,再按下空格键,这样...
分类:
其他好文 时间:
2014-08-28 22:31:16
阅读次数:
271
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?/** * Definition for singly-linked list. *...
分类:
其他好文 时间:
2014-08-28 19:41:25
阅读次数:
224
Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ...
分类:
其他好文 时间:
2014-08-28 19:33:55
阅读次数:
266
send_keys(Keys.BACK_SPACE) 删除键(BackSpace)send_keys(Keys.SPACE) 空格键(Space)send_keys(Keys.TAB) 制表键(Tab)send_keys(Keys.ESCAPE) 回退键(Esc)send_keys(Keys.ENT...
分类:
其他好文 时间:
2014-08-28 18:04:05
阅读次数:
200
新增两块硬盘,来进行实验:
[root@jp ~]# fdisk -l
Disk /dev/sda: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot ...
分类:
系统相关 时间:
2014-08-28 09:42:29
阅读次数:
424
思路: 使用两个队列(一个可以顺序读,所以用vector模拟),每个队列放一层结点。
题解: 两种方法: 1. 使用栈: O(n) Time, O(n) Space。 2. Morris traversal (构造线索树), O(n) Time, O(1) Space.
分类:
其他好文 时间:
2014-08-27 20:16:18
阅读次数:
227
一、基础1、说明:创建数据库CREATE DATABASE database-name 2、说明:删除数据库drop database dbname3、说明:备份sql server--- 创建 备份数据的 deviceUSE masterEXEC sp_addumpdevice 'disk', '...
分类:
数据库 时间:
2014-08-27 16:04:48
阅读次数:
437