摘要: Given three integers n, m and k. Consider the following algorithm to find the maximum element of an array of positive integers: You should build the a 阅读全文
posted @ 2020-04-22 23:06 Veritas_des_Liberty 阅读(368) 评论(0) 推荐(0) 编辑
摘要: John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo -- that is, he would select winners from 阅读全文
posted @ 2020-04-22 17:27 Veritas_des_Liberty 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Given some segments of rope, you are supposed to chain them into one rope. Each time you may only fold two segments into loops and chain them into one 阅读全文
posted @ 2020-04-22 16:57 Veritas_des_Liberty 阅读(159) 评论(0) 推荐(0) 编辑
摘要: In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Similarly, an Eulerian circuit is an Eulerian path which 阅读全文
posted @ 2020-04-22 16:25 Veritas_des_Liberty 阅读(193) 评论(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 ino 阅读全文
posted @ 2020-04-22 12:15 Veritas_des_Liberty 阅读(212) 评论(0) 推荐(0) 编辑