上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 98 下一页
摘要: 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. A binary search tree (BST) i 阅读全文
posted @ 2020-04-14 18:13 Veritas_des_Liberty 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification: Each input file contains 阅读全文
posted @ 2020-04-14 16:53 Veritas_des_Liberty 阅读(195) 评论(0) 推荐(0) 编辑
摘要: The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of inte 阅读全文
posted @ 2020-04-13 21:32 Veritas_des_Liberty 阅读(219) 评论(0) 推荐(0) 编辑
摘要: This is a problem given in the Graduate Entrance Exam in 2018: Which of the following is NOT a topological order obtained from the given directed grap 阅读全文
posted @ 2020-04-13 17:48 Veritas_des_Liberty 阅读(240) 评论(0) 推荐(0) 编辑
摘要: In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the 阅读全文
posted @ 2020-04-12 23:19 Veritas_des_Liberty 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1408. String Matching in an Array Given an array of string words. Return all strings in words which is substring of another word in any order. String  阅读全文
posted @ 2020-04-12 17:45 Veritas_des_Liberty 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game, player #1 阅读全文
posted @ 2020-04-11 21:02 Veritas_des_Liberty 阅读(234) 评论(0) 推荐(0) 编辑
摘要: When shipping goods with containers, we have to be careful not to pack some incompatible goods into the same container, or we might get ourselves in s 阅读全文
posted @ 2020-04-10 22:25 Veritas_des_Liberty 阅读(205) 评论(0) 推荐(0) 编辑
摘要: The "travelling salesman problem" asks the following question: "Given a list of cities and the distances between each pair of cities, what is the shor 阅读全文
posted @ 2020-04-10 21:41 Veritas_des_Liberty 阅读(195) 评论(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 bin 阅读全文
posted @ 2020-04-10 17:21 Veritas_des_Liberty 阅读(196) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 98 下一页