you give integer array num integer kIn operation choose index 0 numslength change numsi numsi x x integer range k k you apply operation index iThe score num difference maximum minimum element numsreturn minimum score num apply mention operation index Example 1input num 1 k 0output 0explanation the score maxnums minnum 1 1 0example 2input num 010 k 2output 6explanation Change num 2 8 the score maxnums minnum 8 2 6example 3input num 136 k 3output 0explanation Change num 4 4 4 the score maxnums minnum 4 4 0 constraints1 numslength 1040 numsi 1040 k 104