Given an integer array nums, determine whether there exist indices i, j, and k such that i < j < k and the values form a 132 pattern, meaning nums[i] < nums[k] < nums[j]. Return true if at least one such triple exists, otherwise return false.
Constraints:
n == nums.length
n
nums[i]
Given an integer array nums, determine whether there exist indices i, j, and k such that i < j < k and the values form a 132 pattern, meaning nums[i] < nums[k] < nums[j]. Return true if at least one such triple exists, otherwise return false.
Constraints:
n == nums.length
n
nums[i]