Created
April 3, 2015 17:04
-
-
Save sguzman/1cb713c81ae716c86988 to your computer and use it in GitHub Desktop.
Succinct overlap checker in javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @param {number} a | |
| * @param {number} b | |
| * @param {number} c | |
| * @param {number} d | |
| * @return {bool} | |
| */ | |
| function overlap(a, b, c, d) { | |
| return b >= c && d >= a; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment