← All problemsSign in

Playing With Numbers

Chef’s brother has visited the Chef during his summer vacation. Chef’s brother loves to play with numbers. So Chef gave him 2 numbers A and B. Chef asked his brother to find the minimum number of steps required to reach B from A given only the following operations can be performed any number of times:- Decrement the current number by 1 - Increment the current number by 3 - Multiply the current num

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start