solulubeta
Sign in
Story Problems / Greedy
06.20 · Problem

Broken Calculator

Medium Work backwards from the target Pro

This problem is part of solulu Pro

A broken calculator shows the number x. It only has two buttons: double the number, or subtract 1. What is the minimum number of button presses to turn x into y?

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 74 of 94 · updated 2026-10-12