There is a broken calculator displaying the integer startValue. In one operation, you can perform one of the following actions:
Multiply the current number by
Subtract
Given two integers startValue and target, return the minimum number of operations required to display the integer target.
Constraints:
startValue, target
There is a broken calculator displaying the integer startValue. In one operation, you can perform one of the following actions:
Multiply the current number by
Subtract
Given two integers startValue and target, return the minimum number of operations required to display the integer target.
Constraints:
startValue, target