上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 98 下一页
摘要: Given an array A of integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible by K. Example 1: Note: Approach #1: Has 阅读全文
posted @ 2019-04-12 22:00 Veritas_des_Liberty 阅读(451) 评论(0) 推荐(0)
摘要: A string of '0's and '1's is monotone increasing if it consists of some number of '0's (possibly 0), followed by some number of '1's (also possibly 0. 阅读全文
posted @ 2019-04-12 21:19 Veritas_des_Liberty 阅读(310) 评论(0) 推荐(0)
摘要: Given a circular array C of integers represented by A, find the maximum possible sum of a non-empty subarray of C. Here, a circular array means the en 阅读全文
posted @ 2019-04-11 22:33 Veritas_des_Liberty 阅读(271) 评论(0) 推荐(0)
摘要: In a deck of cards, each card has an integer written on it. Return true if and only if you can choose X >= 2 such that it is possible to split the ent 阅读全文
posted @ 2019-04-11 21:29 Veritas_des_Liberty 阅读(350) 评论(0) 推荐(0)
摘要: Given an array of integers A, find the sum of min(B), where B ranges over every (contiguous) subarray of A. Since the answer may be large, return the 阅读全文
posted @ 2019-04-11 18:11 Veritas_des_Liberty 阅读(378) 评论(0) 推荐(0)
摘要: Write an iterator that iterates through a run-length encoded sequence. The iterator is initialized by RLEIterator(int[] A), where A is a run-length en 阅读全文
posted @ 2019-04-10 22:14 Veritas_des_Liberty 阅读(237) 评论(0) 推荐(0)
摘要: Given an array of integers A, consider all non-empty subsequences of A. For any sequence S, let the width of S be the difference between the maximum a 阅读全文
posted @ 2019-04-09 21:41 Veritas_des_Liberty 阅读(305) 评论(0) 推荐(0)
摘要: Two images A and B are given, represented as binary, square matrices of the same size. (A binary matrix has only 0s and 1s as values.) We translate on 阅读全文
posted @ 2019-04-08 11:58 Veritas_des_Liberty 阅读(258) 评论(0) 推荐(0)
摘要: 1021. Remove Outermost Parentheses A valid parentheses string is either empty (""), "(" + A + ")", or A + B, where A and B are valid parentheses strin 阅读全文
posted @ 2019-04-07 20:39 Veritas_des_Liberty 阅读(241) 评论(0) 推荐(0)
摘要: Given string S and a dictionary of words words, find the number of words[i] that is a subsequence of S. Note: All words in words and S will only consi 阅读全文
posted @ 2019-04-06 21:09 Veritas_des_Liberty 阅读(285) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 98 下一页