2844. Minimum Operations to Make a Special Number
You are given a 0-indexed string
num
representing a non-negative integer.In one operation, you can pick any digit of
num
and delete it. Note that if you delete all the digits ofnum
,num
becomes0
.Return the minimum number of operations required to make
num
special.An integer
x
is considered special if it is divisible by25
.
c++
1 | class Solution { |