Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). Re...
Given the array prices where prices[i] is the price of the ith item in a shop. There is a special di...
Given the array nums consisting of 2n elements in the form [x1,x2,...,xn,y1,y2,...,yn]. Return the a...
Given the array of integers nums, you will choose two different indices i and j of that array. Retur...
Given two integer arrays of equal length target and arr. In one step, you can select any non-empty s...
Given a sentence that consists of some words separated by a single space, and a searchWord. You have...
Given two integer arrays startTime and endTime and given an integer queryTime. The ith student start...
Given a string s, the power of the string is the maximum length of a non-empty substring that contai...
Given an array target and an integer n. In each iteration, you will read a number from list = {1,2,3...
Given an array nums of 0s and 1s and an integer k, return True if all 1's are at least k places away...