Created
August 22, 2018 22:06
-
-
Save jasonjho/66f9897a600c55ac762ed917f73c8163 to your computer and use it in GitHub Desktop.
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
import sys | |
class Interval(object): | |
def __init__(self, start, end): | |
self.start = start | |
self.end = end | |
def uncovered_intervals(intervals): | |
uncovered = [] | |
# | |
# Your code here | |
# | |
return uncovered | |
def main(): | |
intervals = [] | |
for line in sys.stdin.readlines(): | |
if not line.strip(): | |
continue | |
start, _, end = line.partition(' ') | |
intervals.append(Interval(start, end)) | |
for interval in uncovered_intervals(intervals): | |
print interval.start, interval.end | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment