摘要: There is an array with integers, if there is sum of two numbers equals target, return true; if there is not, return false. Solution: Input array is so 阅读全文
posted @ 2017-01-10 11:02 CornerCase 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1. Integer.MAX_VALUE, Integer.MIN_VALUE 2. int[] res = {1,2} can only be used in the initialization, assignment can only use the res[0] = 1 阅读全文
posted @ 2017-01-10 10:22 CornerCase 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 456. 132 Pattern Given an array of integers a1, a2, a3…an, judge if there exists the 132 pattern. 132 pattern is ai < ak < aj, in which i < j < k. Sol 阅读全文
posted @ 2017-01-10 09:53 CornerCase 阅读(126) 评论(0) 推荐(0) 编辑