you give nonnegative integer array num in operation mustChoose positive integer x x equal small nonzero element numsSubtract x positive element numsReturn minimum number operation element num equal 0 example 1input num 15035output 3explanationin operation choose x 1 now num 04024in second operation choose x 2 now num 02002in operation choose x 2 now num 00000example 2input num 0output 0explanation each element num 0 operation need Constraints1 numslength 1000 numsi 100