![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
文章平均质量分 76
负雪明烛
北京邮电大学计算机硕士毕业,阿里巴巴工程师。坚持写算法题博客 6 年,博客在全网获得数百万阅读。微信公众号:「负雪明烛」
展开
-
《Java必须知道的300个问题》读书总结
这本书是在图书馆随便逛的时候找到的书。花了一下午看完了,感觉有用的地方不是很多,大部分都是些概念,并没有太大用途。不过里边有些东西还是可以看一看的,总结如下。Java语言基础1.表达式3-2.6==0.4的值?答:false。 这是有基本数据类型浮点数计算的不精确性造成的。3-2.6=0.39999999999999999999..可以用BigDecimal进行浮点数精确计算。2.&和&&两个运算符原创 2016-03-29 20:25:47 · 2195 阅读 · 0 评论 -
【LeetCode】476. 数字的补数 Number Complement
[LeetCode]https://leetcode.com/problems/number-complement/Difficulty: EasyQuestion Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary原创 2017-01-15 15:03:37 · 2820 阅读 · 2 评论 -
【LeetCode】485. Max Consecutive Ones 解题报告(Java & Python)
[LeetCode]https://leetcode.com/problems/max-consecutive-ones/Difficulty: EasyQuestion Given a binary array, find the maximum number of consecutive 1s in this array.NoteThe input array will only c原创 2017-01-15 14:36:27 · 1854 阅读 · 0 评论 -
【Android开发】问答机器人,聊天类App的开发制作过程记录
缘起很久没写项目了,所以单纯的想练练手,正好看到有问答机器人的接口,想到之前也做过聊天项目,为什么不实验一下呢。当然也是简单调用接口的项目,并没有真正的完成问答的算法等等。业余项目,功能不齐全,只实现了简单的问答部分,至于聊天界面等等我懒得把之前的项目代码复制一份,因此忽略了。研究首先,我用的问答机器人的接口仍然还是聚合数据开放的免费接口,网址是:https://www.juhe.cn/docs/a原创 2017-01-10 17:30:23 · 3813 阅读 · 4 评论 -
【LeetCode】349. Intersection of Two Arrays 解题报告(Java & Python)
【LeetCode】Intersection of Two Arrays 解题报告标签(空格分隔): LeetCode[LeetCode]https://leetcode.com/problems/intersection-of-two-arrays/Difficulty: EasyQuestion Given two arrays, write a function to compute原创 2017-01-08 19:18:57 · 1274 阅读 · 0 评论 -
【LeetCode】404. Sum of Left Leaves 解题报告(Python)
【LeetCode】Sum of Left Leaves 解题报告标签(空格分隔): LeetCode[LeetCode]https://leetcode.com/problems/sum-of-left-leaves/Difficulty: EasyQuestion Find the sum of all left leaves in a given binary tree.Exampl原创 2017-01-07 22:08:04 · 1367 阅读 · 1 评论 -
【LeetCode】453. Minimum Moves to Equal Array Elements 解题报告(Java & Python & C++)
【LeetCode】Minimum Moves to Equal Array Elements 解题报告标签(空格分隔): LeetCode[LeetCode]https://leetcode.com/problems/minimum-moves-to-equal-array-elements/Difficulty: EasyQuestion Given a non-empty intege原创 2017-01-07 20:52:55 · 1758 阅读 · 0 评论 -
【LeetCode】389. Find the Difference 解题报告(Java & Python)
【LeetCode】Find the Difference 解题报告[LeetCode]https://leetcode.com/problems/find-the-difference/Difficulty: EasyQuestion Given two strings s and t which consist of only lowercase letters. String原创 2017-01-07 15:21:21 · 1182 阅读 · 0 评论 -
【LeetCode】136. Single Number 解题报告(Java & Python)
【LeetCode】Single Number 解题报告(Java & Python)[LeetCode]https://leetcode.com/problems/single-number/Total Accepted: 183838Total Submissions: 348610Difficulty: EasyQuestion Given an ...原创 2017-01-07 14:17:03 · 1389 阅读 · 0 评论 -
【LeetCode】Island Perimeter 解题报告
【LeetCode】Island Perimeter 解题报告[LeetCode]https://leetcode.com/problems/island-perimeter/Total Accepted: 16143Total Submissions: 28552Difficulty: EasyQuestion You are given a map in form of a two-原创 2017-01-06 16:30:50 · 596 阅读 · 0 评论 -
【LeetCode】461. Hamming Distance 解题报告(java & python)
【LeetCode】Hamming Distance 解题报告(java & python)[LeetCode]https://leetcode.com/problems/hamming-distance/Total Accepted: 12155Total Submissions: 16696Difficulty: EasyQuestion The H...原创 2017-01-06 15:23:46 · 2111 阅读 · 0 评论 -
【LeetCode】447. Number of Boomerangs 解题报告(Java & Python)
[LeetCode]https://leetcode.com/problems/number-of-boomerangs/Difficulty: EasyQuestion Given n points in the plane that are all pairwise distinct, a “boomerang” is a tuple of points (i, j, k) such t原创 2017-01-12 16:40:26 · 1335 阅读 · 0 评论