题目:
题解:
func increasingTriplet(nums []int) bool {n := len(nums)if n < 3 {return false}first, second := nums[0], math.MaxInt32for i := 1; i < n; i++ {num := nums[i]if num > second {return true} else if num > first {second = num} else {first = num}}return false
}