Broken Calculator
Medium · Greedy · about 15 minutes
Asked at Google, Amazon, Microsoft.
A faulty calculator shows startValue, and its only working keys are "×2" and "−1". How many key presses does it take, at minimum, to make the display read target?