mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-04 16:12:47 +08:00
6 lines
164 B
Go
6 lines
164 B
Go
package leetcode
|
|
|
|
func isRectangleOverlap(rec1 []int, rec2 []int) bool {
|
|
return rec1[0] < rec2[2] && rec2[0] < rec1[2] && rec1[1] < rec2[3] && rec2[1] < rec1[3]
|
|
}
|