摘要:
In a given grid, each cell can have one of three values: the value 0 representing an empty cell; the value 1 representing a fresh orange; the value 2 阅读全文
posted @ 2020-08-09 22:56
Schwifty
阅读(203)
评论(0)
推荐(0)
摘要:
Given an array A of integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible by K. Example 1: Input: A = [4,5,0,-2,- 阅读全文
posted @ 2020-08-09 13:36
Schwifty
阅读(131)
评论(0)
推荐(0)
摘要:
Your are given an array of positive integers nums. Count and print the number of (contiguous) subarrays where the product of all the elements in the s 阅读全文
posted @ 2020-08-09 12:20
Schwifty
阅读(200)
评论(0)
推荐(0)
摘要:
Given an array of integers nums, write a method that returns the "pivot" index of this array. We define the pivot index as the index where the sum of 阅读全文
posted @ 2020-08-09 12:02
Schwifty
阅读(125)
评论(0)
推荐(0)
摘要:
Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that 阅读全文
posted @ 2020-08-09 11:07
Schwifty
阅读(143)
评论(0)
推荐(0)

浙公网安备 33010602011771号