摘要: Given an array A of 0s and 1s, divide the array into 3 non-empty parts such that all of these parts represent the same binary value. If it is possible 阅读全文
posted @ 2019-01-26 21:26 Veritas_des_Liberty 阅读(262) 评论(0) 推荐(0) 编辑
摘要: Given an array A of integers, for each integer A[i] we need to choose either x = -K or x = K, and add x to A[i] (only once). After this process, we ha 阅读全文
posted @ 2019-01-26 21:18 Veritas_des_Liberty 阅读(244) 评论(0) 推荐(0) 编辑
摘要: Given a string S of '(' and ')' parentheses, we add the minimum number of parentheses ( '(' or ')', and in any positions ) so that the resulting paren 阅读全文
posted @ 2019-01-26 21:16 Veritas_des_Liberty 阅读(186) 评论(0) 推荐(0) 编辑