Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
132 Pattern
Bookmark
Input
Example 1
Example 2
Example 3
Custom
nums
=
[3, 1, 4, 2]
◄ scan
third =
-∞
nums
3
1
4
2
0
1
2
3
stack
(empty)
find i < j < k with nums[i] < nums[k] < nums[j] (a 1-3-2)
algo
master
.
io
Step:
Start of algorithm
0 / 12
Input
Example 1
Example 2
Example 3
Custom
nums
=
[3, 1, 4, 2]
0 / 12
◄ scan
third =
-∞
nums
3
1
4
2
0
1
2
3
stack
(empty)
find i < j < k with nums[i] < nums[k] < nums[j] (a 1-3-2)
algo
master
.
io
Step:
Start of algorithm