Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Interesting, intersecting by Moff
def squares_intersect(s1: tuple[int, int, int], s2: tuple[int, int, int]) -> bool:
x1, y1, w1 = s1
x2, y2, w2 = s2
return min(x1 + w1, x2 + w2) >= max(x1, x2) and min(y1 + w1, y2 + w2) >= max(y1, y2)
Nov. 10, 2022