摘要: Alice and Bob have candy bars of different sizes: A[i] is the size of the i-th bar of candy that Alice has, and B[j] is the size of the j-th bar of ca 阅读全文
posted @ 2018-10-25 07:50 hopskin1 阅读(198) 评论(0) 推荐(0) 编辑
摘要: A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possibl 阅读全文
posted @ 2018-10-25 07:27 hopskin1 阅读(289) 评论(0) 推荐(0) 编辑
摘要: Return any binary tree that matches the given preorder and postorder traversals. Values in the traversals pre and post are distinct positive integers. 阅读全文
posted @ 2018-10-25 06:21 hopskin1 阅读(337) 评论(0) 推荐(0) 编辑