Leetcode 0991. Broken Calculator
Posted on Tue 22 March 2022 in Leetcode • Tagged with reverse-thinking, puzzle
Question Link : https://leetcode.com/problems/broken-calculator/
Difficulty: Medium
Question
There is a broken calculator that has the integer startValue on its display initially. In one operation, you can:
multiply the number on display by 2, or subtract 1 from the number on display.
Given two integers startValue and target …
Continue reading