摘要: You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose o 阅读全文
posted @ 2017-02-26 22:25 Tsunami_lj 阅读(844) 评论(0) 推荐(0) 编辑
摘要: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the lo 阅读全文
posted @ 2017-02-26 20:25 Tsunami_lj 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero. To make pro 阅读全文
posted @ 2017-02-26 18:51 Tsunami_lj 阅读(149) 评论(0) 推荐(0) 编辑