Follow the tails list
Warm-up · Trace the algorithm · about 5 min
Follow the tails list on [4, 10, 3, 8, 9]. Answer each question before the step plays.
Example 1
Input:
{"values":[4,10,3,8,9]}
Output:
3
Constraints
- The trace uses the input shown.
Learn the idea first: Longest increasing subsequence; the n log n version, a visual lesson.
More Longest increasing subsequence; the n log n version problems
- Longest increasing subsequence Standard
- Longest chain of pairs Standard
- Number of longest increasing subsequences Standard
- Russian doll envelopes Challenge