我在看我的书,它没有解释。它告诉我什么是二叉搜索树,它决定使用字符串。
Jared
/ \
Brittany Megan
/ \ / \
Brett Doug Jim Whitney
因此,据推测,一个节点大于其左子树而小于其右子树。贾里德如何比布列塔尼更伟大?
最佳答案
在字典中,“Jared”这个词会出现在“Brittany”之后。
http://en.wikipedia.org/wiki/Lexicographical_order
关于string - 'Jared' 如何大于 'Brittany' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5944973/