836-Rectangle-Overlap

Sat 17 May 2025

https://leetcode.com/problems/rectangle-overlap

import pyutil as pyu
pyu.get_local_pyinfo()
print(pyu.ps2("python-dotenv"))
from typing import List
class Solution:
  def isRectangleOverlap(self, rec1: List[int], rec2: List[int]) -> bool:
    return rec1[0] < rec2[2] and rec2[0] < rec1[2] and rec1[1] < rec2[3] and rec2[1] < rec1[3]
new Solution().isRectangleOverlap()

Score: 5

Category: leetcode