My solution is the following:

```
public class Solution {
public boolean increasingTriplet(int[] nums) {
int len = nums.length;
int i = 0, min = Integer.MAX_VALUE, min2 = Integer.MAX_VALUE;
if(len < 3){
return false;
}
while(i < len-1){
if(nums[i] < min) min = nums[i];
if(nums[i+1] > min2) return true;
if(nums[i] < nums[i+1]){
if(nums[i+1] < min2) min2 = nums[i+1];
if(nums[i] > min) return true;
}
i++;
}
return false;
}
}
```

The case where it fails is when the input is: [5,1,5,5,2,1,4]. So maybe add more test cases to this problem?