1566. Detect Pattern of Length M Repeated K or More Times

作者:sryan 更新时间:6 小时前 分类:数据结构与算法

Given an array of positive integers arr, find a pattern of length m that is repeated k or more times...

点击数:1 回复数:0

1560. Most Visited Sector in a Circular Track

作者:sryan 更新时间:8 小时前 分类:数据结构与算法

Given an integer n and an integer array rounds. We have a circular track which consists of n sectors...

点击数:4 回复数:0

1556. Thousand Separator

作者:sryan 更新时间:3 天前 分类:数据结构与算法

Given an integer n, add a dot (".") as the thousands separator and return it in string for...

点击数:10 回复数:0

1550. Three Consecutive Odds

作者:sryan 更新时间:3 天前 分类:数据结构与算法

Given an integer array arr, return true if there are three consecutive odd numbers in the array. Oth...

点击数:9 回复数:0

1544. Make The String Great

作者:sryan 更新时间:3 天前 分类:数据结构与算法

Given a string s of lower and upper case English letters. A good string is a string which doesn't ha...

点击数:10 回复数:0

1539. Kth Missing Positive Number

作者:sryan 更新时间:3 天前 分类:数据结构与算法

Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Fin...

点击数:8 回复数:0

1534. Count Good Triplets

作者:sryan 更新时间:3 天前 分类:数据结构与算法

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

点击数:9 回复数:0

1528. Shuffle String

作者:sryan 更新时间:3 天前 分类:数据结构与算法

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

点击数:5 回复数:0

1523. Count Odd Numbers in an Interval Range

作者:sryan 更新时间:3 天前 分类:数据结构与算法

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

点击数:5 回复数:0

1518. Water Bottles

作者:sryan 更新时间:3 天前 分类:数据结构与算法

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

点击数:5 回复数:0