It's wrong, fails for example
@StefanPochmann Added this test case as well. Gosh, can't believe we missed so many edge cases due to so many possibilities of rectangle intersection orientation. Still remember when we first created test cases for this problem?
@1337c0d3r Well, in our defense, I did have to use some brain power to custom-craft all these counter-examples to people's solutions :-). I do vaguely remember that old one, but I'd say there it was easy to just enumerate all different types.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.