Last active
May 17, 2020 10:45
-
-
Save aljorhythm/18da26ef3fbfb448505c8b7076751d18 to your computer and use it in GitHub Desktop.
leetcode-20200517
This file contains 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
class Solution(object): | |
def busyStudent(self, startTime, endTime, queryTime): | |
return len(filter(lambda se: queryTime >= se[0] and queryTime <= se[1], zip(startTime, endTime))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment