Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? ...
分类:
其他好文 时间:
2016-09-12 12:28:56
阅读次数:
100
1、复制/etc/rc.d/rc.sysinit文件至/tmp目录,将/tmp/rc.sysinit文件中的以至少一个空白字符开头的行的行首加#;cp/etc/rc.d/rc.sysinit/tmpvim/tmp/rc.sysinit:%/^[[:space:]]\+/#@/g2、复制/boot/grub/grub.conf至/tmp目录中,删除/tmp/grub.conf文件中的行首的空白字符;cp/..
分类:
其他好文 时间:
2016-09-12 07:36:27
阅读次数:
122
本周作业内容:1、复制/etc/rc.d/rc.sysinit文件至/tmp目录,将/tmp/rc.sysinit文件中的以至少一个空白字符开头的行的行首加#;#cp/etc/rc.d/rc.sysinit/tmp#vim/tmp/rc.sysinit:%s/^[[:space:]]\+/\#&/g2、复制/boot/grub/grub.conf至/tmp目录中,删除/tmp/grub.conf文件..
分类:
其他好文 时间:
2016-09-12 07:31:05
阅读次数:
148
1、复制/etc/rc.d/rc.sysinit文件至/tmp目录,将/tmp/rc.sysinit文件中的以至少一个空白字符开头的行的行首加#;[root@mageedutmp]#cp/etc/rc.d/rc.sysinit.
[root@mageedutmp]#vimrc.sysinit
:%s/^[[:space:]]/#&/#按Esc进入vim的末行模式,并输入2、复制/boot/grub/grub...
分类:
系统相关 时间:
2016-09-12 07:29:33
阅读次数:
295
本周作业内容:1、复制/etc/rc.d/rc.sysinit文件至/tmp目录,将/tmp/rc.sysinit文件中的以至少一个空白字符开头的行的行首加#:%s@^[[:space:]]\+@#&@g384substitutionson384lines#vim末行模式下%:表示全文相当于1,$s:在末行模式下完成查找替换操作s/要查找的内容/替换为..
分类:
编程语言 时间:
2016-09-12 07:29:33
阅读次数:
268
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:
其他好文 时间:
2016-09-12 07:21:13
阅读次数:
139
Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? Solution1: 思路:有cycle:1.循环退不出来2.有个节点被指两次。 ...
分类:
其他好文 时间:
2016-09-12 06:15:35
阅读次数:
141
Missing Number [Problem] [Solution2] sum: Time~O(n) Space~O(1) //overflow riskmissing = expected_sum - actual_sum = (0+n)(n+1)/2 - sum [Solution1] xor ...
分类:
其他好文 时间:
2016-09-12 06:15:10
阅读次数:
124
Determine whether an integer is a palindrome. Do this without extra space. Solution1: 思路:按题目的意思就是负数不能是palindrome。用reverse integer函数判断即可。 ...
分类:
其他好文 时间:
2016-09-12 06:13:38
阅读次数:
112
Align String with Space This example shows how to align strings with spaces. The example formats text to table and writes it to console output. To ali ...