1534. Count Good Triplets

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

Given an array of integers arr, and three integers a, b and c. You need to find the number of good t...

点击数:347 回复数:0

1528. Shuffle String

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

Given a string s and an integer array indices of the same length. The string s will be shuffled such...

点击数:484 回复数:0

1523. Count Odd Numbers in an Interval Range

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

Given two non-negative integers low and high. Return the count of odd numbers between low and high (...

点击数:384 回复数:0

1518. Water Bottles

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

Given numBottles full water bottles, you can exchange numExchange empty water bottles for one full w...

点击数:381 回复数:0

1512. Number of Good Pairs

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

Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Ret...

点击数:0 回复数:0

1507. Reformat Date

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

Given a date string in the form Day Month Year, where: Day is in the set {"1st", "2nd...

点击数:0 回复数:0

1502. Can Make Arithmetic Progression From Sequence

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

Given an array of numbers arr. A sequence of numbers is called an arithmetic progression if the diff...

点击数:0 回复数:0

1496. Path Crossing

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

Given a string path, where path[i] = 'N', 'S', 'E' or 'W', each representing moving one unit north, ...

点击数:0 回复数:0

1491. Average Salary Excluding the Minimum and Maximum Salary

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

Given an array of unique integers salary where salary[i] is the salary of the employee i. Return the...

点击数:0 回复数:0

1486. XOR Operation in an Array

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

Given an integer n and an integer start. Define an array nums where nums[i] = start + 2*i (0-indexed...

点击数:0 回复数:0