Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Number of Longest Increasing Subsequence
Bookmark
Input
Example 1
Example 2 (all equal)
Example 3
Custom
nums
=
[1, 3, 5, 4, 7]
maxLen =
0
nums
1
3
5
4
7
len
1
1
1
1
1
cnt
1
1
1
1
1
0
1
2
3
4
not just how long, how MANY longest increasing subsequences?
algo
master
.
io
Step:
How MANY longest increasing subsequences are there?
0 / 23
Input
Example 1
Example 2 (all equal)
Example 3
Custom
nums
=
[1, 3, 5, 4, 7]
0 / 23
maxLen =
0
nums
1
3
5
4
7
len
1
1
1
1
1
cnt
1
1
1
1
1
0
1
2
3
4
not just how long, how MANY longest increasing subsequences?
algo
master
.
io
Step:
How MANY longest increasing subsequences are there?