摘要: You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality c 阅读全文
posted @ 2016-04-07 18:10 Black_Knight 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Given an integer, write a function to determine if it is a power of two. Credits:Special thanks to @jianchao.li.fighter for adding this problem and cr 阅读全文
posted @ 2016-04-07 17:15 Black_Knight 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Java对数函数的计算方法非常有问题,然而在API中却有惊人的误差。但是假如运用了以下的方法,用Java处理数字所碰到的小麻烦就可以轻而易举的解决了。 Sun的J2SE提供了一个单一的Java对数方法——double java.lang.Math.log(double),这很轻易使用。请看如下代码: 阅读全文
posted @ 2016-04-07 17:10 Black_Knight 阅读(22573) 评论(1) 推荐(2) 编辑