public boolean increasingTriplet(int[] nums) {
		if (nums.length < 3)
			return false;
		int smallest = Math.min(nums[0], nums[1]);
		int second = Math.max(nums[0], nums[1]);
		boolean flag = nums[0] > nums[1] ? false : true;
		for (int i = 2; i < nums.length; i++) {
			if (flag) {
				if (nums[i] > second)
					return true;
				else if (nums[i] > smallest)
					second = nums[i];
				else {
					smallest = nums[i];
				}
			} else {
				if (nums[i] > second) {
					second = nums[i];
					flag = true;
				} else if (nums[i] > smallest) {
					second = nums[i];
					flag = true;
				} else {
					second = smallest;
					smallest = nums[i];
				}
			}
		}
		return false;
	}