上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页
摘要: 题目: Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You 阅读全文
posted @ 2023-05-31 14:44 Yohoc 阅读(34) 评论(0) 推荐(0)
摘要: 题目: When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A s 阅读全文
posted @ 2023-05-31 11:08 Yohoc 阅读(20) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-05-29 21:36 Yohoc 阅读(13) 评论(0) 推荐(0)
摘要: 题目: The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. Given any two nodes in a 阅读全文
posted @ 2023-05-28 09:58 Yohoc 阅读(16) 评论(0) 推荐(0)
摘要: 题目: An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at 阅读全文
posted @ 2023-05-25 09:12 Yohoc 阅读(12) 评论(0) 推荐(0)
摘要: 题目: Given a tree, you are supposed to tell if it is a complete binary tree. Input Specification: Each input file contains one test case. For each case 阅读全文
posted @ 2023-05-24 10:24 Yohoc 阅读(67) 评论(0) 推荐(0)
摘要: 题目: Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and 阅读全文
posted @ 2023-05-23 13:51 Yohoc 阅读(28) 评论(0) 推荐(0)
摘要: 题目: 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 no 阅读全文
posted @ 2023-05-23 09:46 Yohoc 阅读(30) 评论(0) 推荐(0)
摘要: 题目: 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 no 阅读全文
posted @ 2023-05-22 11:19 Yohoc 阅读(50) 评论(0) 推荐(0)
摘要: 题目: 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 no 阅读全文
posted @ 2023-05-22 09:43 Yohoc 阅读(17) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页