Driver code
N = 5 NEW_LINE ranges = [ ] NEW_LINE ranges . append ( ( 1 , 5 ) ) NEW_LINE ranges . append ( ( 1 , 5 ) ) NEW_LINE ranges . append ( ( 1 , 5 ) ) NEW_LINE ranges . append ( ( 2 , 3 ) ) NEW_LINE ranges . append ( ( 2 , 3 ) ) NEW_LINE print ( find_maximum_jobs ( N , ranges ) ) NEW_LINE