This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
当前目录文件从大到小排序: | |
ls -lS | |
当前目录,包含子目录文件从大到小排序 | |
find ./ -type f -exec ls -s {} \; | sort -n -r | |
对当前目录下的子目录进行排序 | |
du -b --max-depth=1 | sort -n -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//红黑树, 二叉树改写而来 | |
/***************************result************************ | |
* | |
* 中序遍历红黑树: | |
* value=3 color=RED parent=7 | |
* value=7 color=BLACK parent=10 left=3 | |
* value=10 color=RED parent=14 left=7 right=12 | |
* value=12 color=BLACK parent=10 | |
* value=14 color=BLACK parent=17 left=10 right=16 | |
* value=15 color=RED parent=16 |