LeetCode 354 | Russian Doll Envelopes | Dynamic Programming

Published: 30 March 2021
on channel: The Code Architect
89
6

00:20 : Problem Explanation
01:30 : Sorting Approach
03:20 : Dynamic Programming Approach
05:30 : Code it up
12:00 : Time Comlexity Discussion

You are given a 2D array of integers envelopes where envelopes[i] = [wi, hi] represents the width and the height of an envelope.

One envelope can fit into another if and only if both the width and height of one envelope is greater than the width and height of the other envelope.

Return the maximum number of envelopes can you Russian doll (i.e., put one inside the other).

Note: You cannot rotate an envelope.

#competitiveprogramming #interview #interviewquestion
#coding #leetcode #programmer #tech #software #leetcode #programmingisfun
#marchleetcodingchallenge


On this page of the site you can watch the video online LeetCode 354 | Russian Doll Envelopes | Dynamic Programming with a duration of hours minute second in good quality, which was uploaded by the user The Code Architect 30 March 2021, share the link with friends and acquaintances, this video has already been watched 89 times on youtube and it was liked by 6 viewers. Enjoy your viewing!