AlgoMaster Logo

132 Pattern

nums=[3, 1, 4, 2]
0 / 12
◄ scanthird = -∞nums31420123stack(empty)find i < j < k with nums[i] < nums[k] < nums[j] (a 1-3-2)
algomaster.io
Step:Start of algorithm