上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 98 下一页
摘要: 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-05 11:14 Veritas_des_Liberty 阅读(165) 评论(0) 推荐(0)
摘要: Given three integers A, B and C in [−], you are supposed to tell whether A+B>C. Input Specification: The first line of the input gives the positive nu 阅读全文
posted @ 2020-05-04 22:42 Veritas_des_Liberty 阅读(242) 评论(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 any 阅读全文
posted @ 2020-05-04 21:41 Veritas_des_Liberty 阅读(236) 评论(0) 推荐(0)
摘要: Given any permutation of the numbers {0, 1, 2,..., N−1}, it is easy to sort them in increasing order. But what if Swap(0, *) is the ONLY operation tha 阅读全文
posted @ 2020-05-04 17:32 Veritas_des_Liberty 阅读(256) 评论(0) 推荐(0)
摘要: Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which cou 阅读全文
posted @ 2020-05-04 15:08 Veritas_des_Liberty 阅读(187) 评论(0) 推荐(0)
摘要: For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decre 阅读全文
posted @ 2020-05-03 22:07 Veritas_des_Liberty 阅读(182) 评论(0) 推荐(0)
摘要: Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional 阅读全文
posted @ 2020-05-03 21:20 Veritas_des_Liberty 阅读(251) 评论(0) 推荐(0)
摘要: People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzi 阅读全文
posted @ 2020-05-03 20:49 Veritas_des_Liberty 阅读(209) 评论(0) 推荐(0)
摘要: Given an array of integers nums and an integer limit, return the size of the longest continuous subarray such that the absolute difference between any 阅读全文
posted @ 2020-05-03 18:22 Veritas_des_Liberty 阅读(560) 评论(0) 推荐(0)
摘要: You are given an m * n matrix, mat, and an integer k, which has its rows sorted in non-decreasing order. You are allowed to choose exactly 1 element f 阅读全文
posted @ 2020-05-03 17:28 Veritas_des_Liberty 阅读(247) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 98 下一页