上一页 1 2 3 4 5 6 7 8 ··· 10 下一页

2019年5月4日

摘要: 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-05-04 08:21 一直走在路上 阅读(112) 评论(0) 推荐(0)

2019年5月3日

摘要: A sequence X_1, X_2, ..., X_n is fibonacci-like if: n >= 3 X_i + X_{i+1} = X_{i+2} for all i + 2 <= n Given a strictly increasing array A of positive 阅读全文
posted @ 2019-05-03 07:55 一直走在路上 阅读(113) 评论(0) 推荐(0)

2019年5月2日

摘要: Given two arrays A and B of equal size, the advantage of A with respect to B is the number of indices i for which A[i] > B[i]. Return any permutation 阅读全文
posted @ 2019-05-02 08:05 一直走在路上 阅读(151) 评论(0) 推荐(0)

2019年4月30日

摘要: 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-30 06:54 一直走在路上 阅读(118) 评论(0) 推荐(0)

2019年4月28日

摘要: A character is unique in string S if it occurs exactly once in it. For example, in string S = "LETTER", the only unique characters are "L" and "R". Le 阅读全文
posted @ 2019-04-28 07:34 一直走在路上 阅读(144) 评论(0) 推荐(0)

2019年4月27日

摘要: 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-27 08:08 一直走在路上 阅读(175) 评论(0) 推荐(0)

2019年4月25日

摘要: Alice and Bob have candy bars of different sizes: A[i] is the size of the i-th bar of candy that Alice has, and B[j] is the size of the j-th bar of ca 阅读全文
posted @ 2019-04-25 04:57 一直走在路上 阅读(147) 评论(0) 推荐(0)

2019年4月24日

摘要: 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-24 08:30 一直走在路上 阅读(152) 评论(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-24 03:45 一直走在路上 阅读(150) 评论(0) 推荐(0)

2019年4月20日

摘要: 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-20 01:19 一直走在路上 阅读(178) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页

导航