Last active
December 17, 2016 10:11
-
-
Save Arieg419/dd7a8594b3e8e10b4c992123b7ab3ff6 to your computer and use it in GitHub Desktop.
Merge Meetings
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
// Our input. An array of objects containing all original meeting times. | |
[ | |
{startTime: 0, endTime: 1}, | |
{startTime: 3, endTime: 5}, | |
{startTime: 4, endTime: 8}, | |
{startTime: 10, endTime: 12}, | |
{startTime: 9, endTime: 10}, | |
] | |
// Our output. An array of objects containing all meeting times merged. | |
[ | |
{startTime: 0, endTime: 1}, | |
{startTime: 3, endTime: 8}, | |
{startTime: 9, endTime: 12}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment