摘要: A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes 阅读全文
posted @ 2020-05-10 23:30 Veritas_des_Liberty 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making 阅读全文
posted @ 2020-05-10 22:09 Veritas_des_Liberty 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Given an undirected tree consisting of n vertices numbered from 0 to n-1, which has some apples in their vertices. You spend 1 second to walk over one 阅读全文
posted @ 2020-05-10 18:05 Veritas_des_Liberty 阅读(323) 评论(0) 推荐(0) 编辑