Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT arr = [ 2 , 6 , 1 , 8 , 3 , 4 ] ; NEW_LINE N = len ( arr ) ; NEW_LINE Q = [ [ 0 , 3 ] , [ 1 , 5 ] , [ 4 , 5 ] ] ; NEW_LINE M = len ( Q ) ; NEW_LINE minimumDifference ( arr , Q , N , M ) ; NEW_LINE DEDENT