摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文