摘要: Easy Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes su 阅读全文
posted @ 2019-09-02 15:15 程嘿嘿 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Easy Given a string S that only contains "I" (increase) or "D" (decrease), let N = S.length. Return any permutation A of [0, 1, ..., N] such that for 阅读全文
posted @ 2019-09-02 14:40 程嘿嘿 阅读(89) 评论(0) 推荐(0) 编辑
摘要: Easy Let's call an array A a mountain if the following properties hold: A.length >= 3 There exists some 0 < i < A.length - 1 such that A[0] < A[1] < . 阅读全文
posted @ 2019-09-02 13:48 程嘿嘿 阅读(115) 评论(0) 推荐(0) 编辑