you give integer array num in operation replace element num integernum consider continuous follow condition fulfilledall element num uniquethe difference maximum element minimum element num equal numslength 1for example num 4 2 5 3 continuous num 1 2 3 5 6 continuousreturn minimum number operation num continuous Example 1input num 4253output 0explanation num continuousexample 2input num 12356output 1explanation one possible solution change element 4the result array 12354 continuousexample 3input num 1101001000output 3explanation one possible solution Change second element 2 Change element 3 Change fourth element 4the result array 1234 continuous Constraints1 numslength 1051 numsi 109