摘要: 题做多了就会发现这题的code结构和Kth Largest Element in an Array O(n)很像,除了要两边都要recursion而不是一边以外。 通过长度计算index,总是有反向计算公式来验证作为intuition offset的意义:因为offset是当前范围在inorder序 阅读全文
posted @ 2016-05-03 07:33 absolute100 阅读(93) 评论(0) 推荐(0) 编辑
摘要: test 阅读全文
posted @ 2016-05-03 00:26 absolute100 阅读(121) 评论(0) 推荐(0) 编辑