码迷,mamicode.com
首页 >  
搜索关键字:space    ( 18273个结果
141. 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-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
马哥linux第六周作业
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
马哥2016全新Linux+Python高端运维班-Linux vim 末行模式,sed命令,基本bash脚本
本周作业内容:1、复制/etc/rc.d/rc.sysinit文件至/tmp目录,将/tmp/rc.sysinit文件中的以至少一个空白字符开头的行的行首加#:%s@^[[:space:]]\+@#&@g384substitutionson384lines#vim末行模式下%:表示全文相当于1,$s:在末行模式下完成查找替换操作s/要查找的内容/替换为..
分类:编程语言   时间:2016-09-12 07:29:33    阅读次数:268
26. Remove Duplicates from Sorted Array
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
141. 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? Solution1: 思路:有cycle:1.循环退不出来2.有个节点被指两次。 ...
分类:其他好文   时间:2016-09-12 06:15:35    阅读次数:141
LeetCode: missing num, count of 1s
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
9. Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. Solution1: 思路:按题目的意思就是负数不能是palindrome。用reverse integer函数判断即可。 ...
分类:其他好文   时间:2016-09-12 06:13:38    阅读次数:112
C#输出文字对齐,空格位数对齐
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 ...
分类:Windows程序   时间:2016-09-12 00:42:23    阅读次数:235
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!