problem
solution
1 | class Solution { |
option 1
Sort the rectangles at each height and use binary search.
1 | class Solution { |
analysis
- time complexity
O(nlogm)
- space complexity
O(nm)
1 | class Solution { |
Sort the rectangles at each height and use binary search.
1 | class Solution { |
O(nlogm)
O(nm)