![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
SmallNancy
这个作者很懒,什么都没留下…
展开
-
判断一个数的二进制中1的个数
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int count = 0; while (num != 0) { num = num & (...原创 2019-08-26 08:32:19 · 244 阅读 · 0 评论 -
[leetcode55]跳跃游戏(超简单)
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determine if you ...原创 2019-08-26 09:24:02 · 286 阅读 · 0 评论