A Solution to Leetcode 991. Broken Calculator
Problem statement
There is a broken calculator that has the integer startValue on its display initially. In one operation, you can only either:
multiply the number on display by 2, or
subtract 1 from the number on display.
Given two integers startV...
nhutnguyen.hashnode.dev2 min read