Given an array of positive integers arr, calculate the sum of all possible odd-length subarrays. A s...
Given a rows x cols matrix mat, where mat[i][j] is either 0 or 1, return the number of special posit...
Given a string s containing only lower case English letters and the '?' character, convert all the '...
Given a square matrix mat, return the sum of the matrix diagonals. Only include the sum of all the e...
Given an array of positive integers arr, find a pattern of length m that is repeated k or more times...
Given an integer n and an integer array rounds. We have a circular track which consists of n sectors...
Given an integer n, add a dot (".") as the thousands separator and return it in string for...
Given an integer array arr, return true if there are three consecutive odd numbers in the array. Oth...
Given a string s of lower and upper case English letters. A good string is a string which doesn't ha...
Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Fin...