Given a positive integer n, you may repeatedly perform the following operation any number of times.
In one operation, choose a nonnegative integer i and either add n or subtract n.
Return the minimum number of operations required to make n equal to
Constraints:
n
Given a positive integer n, you may repeatedly perform the following operation any number of times.
In one operation, choose a nonnegative integer i and either add n or subtract n.
Return the minimum number of operations required to make n equal to
Constraints:
n