摘要: Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.思路:从中序遍历和后序遍历的... 阅读全文
posted @ 2014-04-26 19:25 Awy 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Implement pow(x,n).思路:这道题看似简单,其实杀机无穷啊,所以啊在面试的时候,面试官考你一道很简单的问题,要想清楚。这道题我一直RE,就是对n0) return pow_position(x,n); else return ... 阅读全文
posted @ 2014-04-26 16:39 Awy 阅读(141) 评论(0) 推荐(0) 编辑