Skip to content

Instantly share code, notes, and snippets.

@aljorhythm
Last active May 17, 2020 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aljorhythm/18da26ef3fbfb448505c8b7076751d18 to your computer and use it in GitHub Desktop.
Save aljorhythm/18da26ef3fbfb448505c8b7076751d18 to your computer and use it in GitHub Desktop.
leetcode-20200517
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