1385. Find the Distance Value Between Two Arrays

作者:sryan 更新时间:2021-03-02 18:38 分类:数据结构与算法

Given two integer arrays arr1 and arr2, and the integer d, return the distance value between the two...

点击数:440 回复数:0

1380. Lucky Numbers in a Matrix

作者:sryan 更新时间:2021-03-02 18:26 分类:数据结构与算法

Given a m * n matrix of distinct numbers, return all lucky numbers in the matrix in any order. A luc...

点击数:422 回复数:0

1374. Generate a String With Characters That Have Odd Counts

作者:sryan 更新时间:2021-03-02 17:39 分类:数据结构与算法

Given an integer n, return a string with n characters such that each character in such string occurs...

点击数:392 回复数:0

1370. Increasing Decreasing String

作者:sryan 更新时间:2021-03-02 17:32 分类:数据结构与算法

Given a string s. You should re-order the string using the following algorithm: Pick the smallest ch...

点击数:421 回复数:0

1365. How Many Numbers Are Smaller Than the Current Number

作者:sryan 更新时间:2021-03-02 16:41 分类:数据结构与算法

Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. T...

点击数:445 回复数:0

1360. Number of Days Between Two Dates

作者:sryan 更新时间:2021-03-02 16:24 分类:数据结构与算法

Write a program to count the number of days between two dates. The two dates are given as strings, t...

点击数:571 回复数:0

1356. Sort Integers by The Number of 1 Bits

作者:sryan 更新时间:2021-03-02 14:46 分类:数据结构与算法

Given an integer array arr. You have to sort the integers in the array in ascending order by the num...

点击数:469 回复数:0

1351. Count Negative Numbers in a Sorted Matrix

作者:sryan 更新时间:2021-03-02 13:55 分类:数据结构与算法

Given a m x n matrix grid which is sorted in non-increasing order both row-wise and column-wise, ret...

点击数:543 回复数:0

1346. Check If N and Its Double Exist

作者:sryan 更新时间:2021-03-01 18:48 分类:数据结构与算法

Given an array arr of integers, check if there exists two integers N and M such that N is the double...

点击数:442 回复数:0

1342. Number of Steps to Reduce a Number to Zero

作者:sryan 更新时间:2021-03-01 18:23 分类:数据结构与算法

Given a non-negative integer num, return the number of steps to reduce it to zero. If the current nu...

点击数:417 回复数:0