摘要: cd命令用来切换工作目录至dirname。 其中dirName表示法可为绝对路径或相对路径。若目录名称省略,则变换至使用者的home directory(也就是刚login时所在的目录)。 另外,~也表示为home directory的意思,.则是表示目前所在的目录,..则表示目前目录位置的上一层目 阅读全文
posted @ 2017-12-20 19:25 __Meng 阅读(314) 评论(0) 推荐(0)
摘要: nl命令读取 file 参数(缺省情况下标准输入),计算输入中的行号,将计算过的行号写入标准输出。在输出中,nl命令根据您在命令行中指定的标志来计算左边的行。 输入文本必须写在逻辑页中。每个逻辑页有头、主体和页脚节(可以有空节)。除非使用-p选项,nl 命令在每个逻辑页开始的地方重新设置行号。可以单 阅读全文
posted @ 2017-12-20 17:14 __Meng 阅读(266) 评论(0) 推荐(0)
摘要: Given a binary tree, return the tilt of the whole tree. The tilt of a tree node is defined as the absolute difference between the sum of all left subt 阅读全文
posted @ 2017-12-20 11:03 __Meng 阅读(142) 评论(0) 推荐(0)