Back to QuestionsPractice with This Question
Russian Doll Envelopes
132.8K views•Asked at Microsoft•
Hard
Question Explain
You have a number of envelopes with widths and heights. Find the maximum number of envelopes you can 'Russian doll' one inside the other. This reduces to the Longest Increasing Subsequence (LIS) problem.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.