1588. Sum of All Odd Length Subarrays

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

Given an array of positive integers arr, calculate the sum of all possible odd-length subarrays. A s...

点击数:463 回复数:0

1582. Special Positions in a Binary Matrix

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

Given a rows x cols matrix mat, where mat[i][j] is either 0 or 1, return the number of special posit...

点击数:444 回复数:0

1576. Replace All ?'s to Avoid Consecutive Repeating Characters

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

Given a string s containing only lower case English letters and the '?' character, convert all the '...

点击数:404 回复数:0

1572. Matrix Diagonal Sum

作者:sryan 更新时间:2021-03-08 11:33 分类:数据结构与算法

Given a square matrix mat, return the sum of the matrix diagonals. Only include the sum of all the e...

点击数:426 回复数:0

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

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

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

点击数:473 回复数:0

1560. Most Visited Sector in a Circular Track

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

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

点击数:478 回复数:0

1556. Thousand Separator

作者:sryan 更新时间:2021-03-05 11:12 分类:数据结构与算法

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

点击数:466 回复数:0

1550. Three Consecutive Odds

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

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

点击数:496 回复数:0

1544. Make The String Great

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

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

点击数:494 回复数:0

1539. Kth Missing Positive Number

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

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

点击数:382 回复数:0