摘要: 之前写笔记是不过脑子吗?????自己看都被恶心到了。。。。 以为搜易贼 两分钟写好的东西果然。。 public class Solution { public boolean isPowerOfTwo(int n) { int result=0; while(true) { result=n/2; 阅读全文
posted @ 2016-09-22 20:15 Nicolellu 阅读(148) 评论(0) 推荐(0)
摘要: ··brute force--强力暴力 ··IllegalArgumentException--不合法的参数 throw new IllegalArgumentException(" no two num solution"); 返回数组下标。下标就是i,j和,暴力完全能想到啊。。被leetcode 阅读全文
posted @ 2016-09-22 14:44 Nicolellu 阅读(182) 评论(0) 推荐(0)