摘要: 题目:计算完全二叉树的节点数目(二分法) Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia:In a complete binary 阅读全文
posted @ 2016-02-22 23:21 wxquare 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 题目: There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the followin 阅读全文
posted @ 2016-02-22 19:07 wxquare 阅读(227) 评论(0) 推荐(0) 编辑