摘要:
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might 阅读全文
posted @ 2017-10-16 21:55
爱简单的Paul
阅读(277)
评论(0)
推荐(0)
摘要:
递归的思路: 阅读全文
posted @ 2017-10-16 20:03
爱简单的Paul
阅读(127)
评论(0)
推荐(0)
摘要:
反转一个数组: 其实STL中的vector有一个reverse函数便可以使用。 结果: 阅读全文
posted @ 2017-10-16 16:11
爱简单的Paul
阅读(4694)
评论(0)
推荐(0)
摘要:
结果: 阅读全文
posted @ 2017-10-16 11:29
爱简单的Paul
阅读(1431)
评论(0)
推荐(0)