Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT arr = [ [ 1 , 4 ] , [ 2 , 2 ] , [ 2 , 3 ] ] NEW_LINE n = len ( arr ) NEW_LINE print ( " YES " if checkNonOverlapping ( arr , n ) else " NO " ) NEW_LINE DEDENT