Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT A = [ [ 1 , 3 ] , [ 2 , 4 ] , [ 2 , 10 ] , [ 2 , 3 ] , [ 1 , 1 ] ] NEW_LINE X = [ 1 , 10 ] NEW_LINE print ( minimizeSegment ( A , X ) ) NEW_LINE DEDENT