you give integer array numsIn choose element num change valuereturn minimum difference large small value num perform move Example 1input num 5324output 0explanation we 3 movesIn change 2 3 num 5334in second change 4 3 num 5333in change 5 3 num 3333after perform 3 move difference minimum maximum 3 3 0example 2input num 1501014output 1explanation we 3 movesIn change 5 0 num 1001014in second change 10 0 num 100014in change 14 1 num 10001after perform 3 move difference minimum maximum 1 0 0it show way difference 0 3 movesexample 3input num 310020output 0explanation we 3 movesIn change 100 7 num 4720in second change 20 7 num 477in change 4 3 num 777after perform 3 move difference minimum maximum 7 7 0 constraints1 numslength 105109 numsi 109