2015年7月6日

lc面试准备:Invert Binary Tree

摘要: # 1 题目Invert a binary tree.``` 4 / \ 2 7 / \ / \1 3 6 9```to``` 4 / \ 7 2 / \ / \9 6 3 1```**接口**: `public TreeN... 阅读全文

posted @ 2015-07-06 23:41 BYRHuangQiang 阅读(326) 评论(0) 推荐(0) 编辑

lc面试准备:Power of Two

摘要: # 1 题目> Given an integer, write a function to determine if it is a power of two.**接口** `boolean isPowerOfTwo(int n) `# 2 思路判断一个整数是否是2的幂次结果数。> 0100 ==>... 阅读全文

posted @ 2015-07-06 22:51 BYRHuangQiang 阅读(260) 评论(0) 推荐(0) 编辑

导航