You are given two integers, num and k.
Determine the minimum possible size of a collection of positive integers where each integer has a units digit equal to k, and the sum of all integers in the collection equals num.
Return the minimum size of such a collection, or
Note: The sum of an empty collection is considered
. The collection may contain multiple instances of the same integer.
Constraints:
num
k
You are given two integers, num and k.
Determine the minimum possible size of a collection of positive integers where each integer has a units digit equal to k, and the sum of all integers in the collection equals num.
Return the minimum size of such a collection, or
Note: The sum of an empty collection is considered
. The collection may contain multiple instances of the same integer.
Constraints:
num
k