摘要: Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i]. After this process, we have some array B 阅读全文
posted @ 2020-08-15 14:27 Schwifty 阅读(84) 评论(0) 推荐(0)
摘要: Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A. You may re 阅读全文
posted @ 2020-08-15 14:17 Schwifty 阅读(94) 评论(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 @ 2020-08-15 13:40 Schwifty 阅读(117) 评论(0) 推荐(0)