You have a numberof envelopes with widths and heights givenas a pair of integers (w, h). One envelope can fit into another ifand only if both the width and height of one envelope isgreater thanthe width and height ofthe other envelope.
What isthe maximum numberof envelopes can you Russian doll? (put one inside other)
Example:
Given envelopes = [[5,4],[6,4],[6,7],[2,3]], the maximum numberof envelopes you can Russian doll is3 ([2,3] => [5,4] => [6,7]).
You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if both the width and height of one envelope is greater than the