摘要: public boolean isPowerOfTwo(int n) { if(n>=1; } return true; } 阅读全文
posted @ 2015-09-22 16:30 TonyLuis 阅读(132) 评论(0) 推荐(0)
摘要: 解题思路:直接修改中序遍历函数即可,JAVA实现如下:int res = 0; int k = 0; public int kthSmallest(TreeNode root, int k) { this.k = k; inorderTraversal(root); return res; }... 阅读全文
posted @ 2015-09-22 16:24 TonyLuis 阅读(341) 评论(0) 推荐(0)