摘要: 2 3树 定义 一棵2 3查找树或为一棵空树,或由以下结点组成: 2 结点,含有一个键(及其对应的值)和两条链接。 3 结点,含有两个键(及其对应的值)和三条链接。 2 结点、3 结点的性质均与BST相同或相似。 搜索 与二叉搜索树类似。 插入 向2 结点中插入新键 只需要将键插入2 结点,使之变成 阅读全文
posted @ 2017-08-22 21:03 Aneureka 阅读(264) 评论(0) 推荐(0) 编辑
摘要: Problem Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given t 阅读全文
posted @ 2017-08-22 00:33 Aneureka 阅读(107) 评论(0) 推荐(0) 编辑