20 hours ago10 min read
Russian Doll Envelopes: A Dynamic Programming Interview Walkthrough
Russian Doll Envelopes is a dynamic programming problem that interviewers love because it tests whether you can recognize a familiar problem hiding inside an unfamiliar one. The challenge is in realizing that with the right sort, the second dimension collapses into a classic Longest Increasing Subsequence problem. That recognition is the actual signal the interviewer is looking for.