摘要: 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 阅读(234) 评论(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 阅读(225) 评论(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 阅读(246) 评论(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 阅读(180) 评论(0) 推荐(0) 编辑