摘要: 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 阅读(295) 评论(0) 推荐(0)
摘要: 递归的思路: 阅读全文
posted @ 2017-10-16 20:03 爱简单的Paul 阅读(138) 评论(0) 推荐(0)
摘要: 反转一个数组: 其实STL中的vector有一个reverse函数便可以使用。 结果: 阅读全文
posted @ 2017-10-16 16:11 爱简单的Paul 阅读(4713) 评论(0) 推荐(0)
摘要: 结果: 阅读全文
posted @ 2017-10-16 11:29 爱简单的Paul 阅读(1454) 评论(0) 推荐(0)