deno.land / x / masx200_leetcode_test@10.6.5 / rectangle-overlap / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
export default function isRectangleOverlap( rec1: number[], rec2: number[],): boolean { return ( Math.min(rec1[2], rec2[2]) > Math.max(rec1[0], rec2[0]) && Math.min(rec1[3], rec2[3]) > Math.max(rec1[1], rec2[1]) );}
masx200_leetcode_test
leetcode题解和一些测试工具
DocumentationDocumentation
GitHub Repositorymasx200/leetcode-test
GitHub Stars
4

Version Info

Tagged at
4 months ago