Title: #836 - Rectangle Overlap - LeetCode JavaScript Solutions
Open Graph Title: #836 - Rectangle Overlap - LeetCode JavaScript Solutions
X Title: #836 - Rectangle Overlap - LeetCode JavaScript Solutions
Description: An axis-aligned rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) is the coordinate of its bottom-left corner, and (x2, y2...
Open Graph Description: An axis-aligned rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) is the coordinate of its bottom-left corner, and (x2, y2...
X Description: An axis-aligned rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) is the coordinate of its bottom-left corner, and (x2, y2...
Keywords:
Opengraph URL: https://leetcodejavascript.com/solutions/rectangle-overlap
Domain: leetcodejavascript.com
{"@context":"https://schema.org","@type":"Code","url":"https://leetcodejavascript.com/solutions/rectangle-overlap","name":"#836 - Rectangle Overlap - LeetCode JavaScript Solutions","description":"An axis-aligned rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) is the coordinate of its bottom-left corner, and (x2, y2...","programmingLanguage":"JavaScript","codeRepository":"https://github.com/JoshCrozier/leetcode-javascript","codeSampleType":"JavaScript","text":"/**\n * @param {number[]} rec1\n * @param {number[]} rec2\n * @return {boolean}\n */\nvar isRectangleOverlap = function(rec1, rec2) {\n const [x1, y1, x2, y2] = rec1;\n const [a1, b1, a2, b2] = rec2;\n return x1 < a2 && a1 < x2 && y1 < b2 && b1 < y2;\n};","keywords":"LeetCode 836, #836 - Rectangle Overlap, Easy, JavaScript solution","learningResourceType":"Code","isAccessibleForFree":true,"educationalLevel":"intermediate","interactivityType":"mixed"}
| author | LeetCodeJavascript.com |
| og:type | article |
| og:image | https://leetcodejavascript.com/og-image.jpg |
| og:site_name | LeetCode JavaScript Solutions |
| twitter:card | summary_large_image |
| twitter:url | https://leetcodejavascript.com/solutions/rectangle-overlap |
| twitter:image | https://leetcodejavascript.com/og-image.jpg |
| twitter:creator | @joshcrozier |
| theme-color | #1f2937 |
Links:
| LeetCodeJavascript.com | https://leetcodejavascript.com/ |
| Star on GitHub | https://github.com/JoshCrozier/leetcode-javascript |
| Back to all solutions | https://leetcodejavascript.com |
| View on LeetCode | https://leetcode.com/problems/rectangle-overlap/ |
| View on GitHub | https://github.com/JoshCrozier/leetcode-javascript/blob/master/solutions/0836-rectangle-overlap.js |
| Math | https://leetcodejavascript.com/tags/math |
| Geometry | https://leetcodejavascript.com/tags/geometry |
| Josh Crozier | https://joshcrozier.com |
Viewport: width=device-width, initial-scale=1.0
Robots: index, follow