3
bool find132pattern(vector<int> &nums) {4
// Initialise a empty stack "s"...6
// To keep track of minimum element...8
// Run a Loop from last to first index...9
for (int i = nums.size() - 1; i >= 0; i--) {10
// If min is greater than nums[i], return true...11
if (nums[i] < min) return true;12
// If stack is not empty & nums[i] is greater than the top element of13
// stack, then pop the element...14
while (!s.empty() && nums[i] > s.top()) {18
// Otherwise, push nums[i] into stack...21
// If the condition is not satisfied, return false.