say given is [3, 2] [3, 4 ] after rotate [3, 4] -> [4, 3] then we can put [3, 2] into [4, 3]
Yes, I was wondering if we need to consider this scenario... Maybe, we need first reorder the input envelopes so that envelopes >= envelopes ?
I think envelopes traditionally have a single opening which gives them an orientation.
@billy11 How does that matter, though?
@StefanPochmann If you have an orientation then the length and width are topographically defined.
Allowing rotation assumes:
- Width and height are the same units
- Rotation doesn't change the properties of the envelopes. For example: if they have an opening at the top rotation removes the likelihood of constant time insert and removal.
- If that weren't the case, it should be stated. It's definitely legitimate to assume.
- The question doesn't care about such times.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.