规雨
规雨
全部文章
分类
Java-web开发(24)
Java底层(1)
Java项目实战(1)
会用决定下限,基础决定上限(5)
全栈-Java基础(13)
数据结构(8)
每日一道编程题(57)
知识积累(8)
算法(1)
归档
标签
去牛客网
登录
/
注册
兴趣记录
以兴趣为驱动,以咸鱼为目标
全部文章
(共118篇)
27 Hamming Distance
关注 每天一道编程题 专栏,一起学习进步。 题目 The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Give...
2020-02-19
0
512
26 Unique Number of Occurrences
关注 每天一道编程题 专栏,一起学习进步。 题目 Given an array of integers arr, write a function that returns true if and only if the number of occurrences of each value...
2020-02-19
0
637
25 Squares of a Sorted Array
关注 每天一道编程题 专栏,一起学习进步。 题目 Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorte...
2020-02-17
0
495
24 Merge Two Binary Trees
关注 每天一道编程题 专栏,一起学习进步。 题目 Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are over...
2020-02-15
0
530
23 Robot Return to Origin
关注 每天一道编程题 专栏,一起学习进步。 题目 There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this rob...
2020-02-14
0
460
22 Self Dividing Numbers
关注 每天一道编程题 专栏,一起学习进步。 题目 A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing num...
2020-02-13
0
385
21 N-Repeated Element in Size 2N Array
关注 每天一道编程题 专栏,一起学习进步。 题目 In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return th...
2020-02-11
0
503
20 Sort Array By Parity
关注 每天一道编程题 专栏,一起学习进步。 题目 Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the ...
2020-02-10
0
459
19 Flipping an Image
关注 每天一道编程题 专栏,一起学习进步。 题目 Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip...
2020-02-09
0
556
18 Replace Elements with Greatest Element on Right Side
关注 每天一道编程题 专栏,一起学习进步。 题目 Given an array arr, replace every element in that array with the greatest element among the elements to its right, and re...
2020-02-08
0
530
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页