Clear logic in Python3
Intuition\nHere we have two rectangles A and B, you should check, if they overlap.\n\n# Approach \nThe only thing you care about is to check, if points are inte
# Intuition\nHere we have two rectangles `A` and `B`, you should check, if they **overlap**.\n\n# Approach \nThe only thing you care about is to check, if points are intersect (starting points of `A` with ending points of `B` and vice versa).\n\n# Complexity\n- Time complexity: **O(1)**\n\n- Space complexity: **O(1)**\n\n# Code\n```python []\nclass Solution:\n    def isRectangleOverlap(self, A: List[int], B: List[int]) -> bool:\n        return A[2] > B[0] and A[3] > B[1] and B[2] > A[0] and B[3] > A[1]\n```\n```typescript []\nconst isRectangleOverlap = (A: number[], B: number[]): boolean => A[2] > B[0] && A[3] > B[1] && B[2] > A[0] && B[3] > A[1]\n```
['Math', 'TypeScript', 'Python3']