摘要: 1.题目Given a tree, you are supposed to tell if it is a complete binary tree.Input Specification:Each input ... 阅读全文
posted @ 2020-04-07 19:08 Jason66661010 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1.题目Formation is very important when taking a group photo. Given the rules of forming K rows with N people... 阅读全文
posted @ 2020-04-07 17:00 Jason66661010 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1.题目The basic task is simple: given N real numbers, you are supposed to calculate their average. But what ... 阅读全文
posted @ 2020-04-07 16:51 Jason66661010 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1.题目This time, you are supposed to help us collect the data for family-owned property. Given each person's... 阅读全文
posted @ 2020-04-07 16:49 Jason66661010 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1.题目A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:... 阅读全文
posted @ 2020-04-07 14:52 Jason66661010 阅读(86) 评论(0) 推荐(0) 编辑