摘要: 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 @ 2018-06-27 13:00 赖兴宇 阅读(153) 评论(0) 推荐(0) 编辑
摘要: On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear rep 阅读全文
posted @ 2018-06-27 11:12 赖兴宇 阅读(263) 评论(0) 推荐(1) 编辑
摘要: 继续加油 2018/6/27 阅读全文
posted @ 2018-06-27 10:25 赖兴宇 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1110 Complete Binary Tree (25)(25 分) Given a tree, you are supposed to tell if it is a complete binary tree. Input Specification: Each input file cont 阅读全文
posted @ 2018-06-27 10:24 赖兴宇 阅读(200) 评论(0) 推荐(0) 编辑
摘要: The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input n 阅读全文
posted @ 2018-06-27 09:11 赖兴宇 阅读(129) 评论(0) 推荐(0) 编辑
摘要: People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earch is called "jan, feb, mar, apr, m 阅读全文
posted @ 2018-06-27 08:36 赖兴宇 阅读(118) 评论(0) 推荐(0) 编辑