Dynamic Programming21 sections · 916 units
Open in CourseQuiz: LIS Variants
Recognizing the pattern
Check Your Understanding
In Russian Doll Envelopes, why do we sort by width ascending then height descending?
- A.Same width envelopes cannot nest, descending height prevents picking multiple
- B.To make the array smaller
- C.To use less memory
- D.It does not matter how we sort