Рет қаралды 9,596
Time Complexity: O(NlogN), where N is the number of intervals (this is because of the sort on line 22).
Space Complexity: O(N) because of the intervals list being created!
Leetcode #759 - Employee Free Time, with an easy-to-understand explanation :)
Let me know if you have any questions down below, or if there's a question you'd like me to cover next!
leetcode.com/p...
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Let's connect on LinkedIn!
/ aleksmitrovic
Follow me on Medium!
/ mitrovic.aleksandar
Questions or suggestions for new videos? Email me!
babybear4812@gmail.com