Skip to content

Instantly share code, notes, and snippets.

@jasonjho
Created August 22, 2018 22:06
Show Gist options
  • Save jasonjho/66f9897a600c55ac762ed917f73c8163 to your computer and use it in GitHub Desktop.
Save jasonjho/66f9897a600c55ac762ed917f73c8163 to your computer and use it in GitHub Desktop.
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