@@ -0,0 +1,780 @@
+package problems;%0A%0Aimport java.util.Arrays;%0A%0A/**%0A * Leetcode: Increasing Triplet Subsequence%0A * Created by alan on 2/23/2016.%0A */%0Apublic class IncreasingTripletSubsequence %7B%0A    public boolean increasingTriplet(int%5B%5D nums) %7B%0A        int one = Integer.MAX_VALUE, two = Integer.MAX_VALUE;%0A%0A        for (int t : nums) %7B%0A            if (t %3E two)%0A                return true;%0A            if (t %3C one)%0A                one = t;%0A            else if (t %3E one && t %3C two)%0A                two = t;%0A        %7D%0A        return false;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        IncreasingTripletSubsequence it = new IncreasingTripletSubsequence();%0A        int%5B%5D nums = %7B1, 6, -2, 2%7D;%0A%0A        System.out.print(Arrays.toString(nums) + %22 : %22 + it.increasingTriplet(nums));%0A    %7D%0A%7D%0A

Add Increasing Triplet Subsequence