上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 76 下一页
摘要: Given an array A of 0s and 1s, we may change up to K values from 0 to 1. Return the length of the longest (contiguous) subarray that contains only 1s. 阅读全文
posted @ 2020-08-11 11:03 Schwifty 阅读(96) 评论(0) 推荐(0)
摘要: Given an array A of 0s and 1s, we may change up to K values from 0 to 1. Return the length of the longest (contiguous) subarray that contains only 1s. 阅读全文
posted @ 2020-08-11 10:30 Schwifty 阅读(98) 评论(0) 推荐(0)
摘要: Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Find the kth positive integer that is missing from th 阅读全文
posted @ 2020-08-10 10:51 Schwifty 阅读(371) 评论(0) 推荐(0)
摘要: Given a string s of lower and upper case English letters. A good string is a string which doesn't have two adjacent characters s[i] and s[i + 1] where 阅读全文
posted @ 2020-08-10 10:12 Schwifty 阅读(300) 评论(0) 推荐(0)
摘要: 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)
摘要: There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0) after it 阅读全文
posted @ 2020-08-08 11:01 Schwifty 阅读(182) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 76 下一页