← All problemsSign in

Cake and Precision

Chef is baking a cake. While baking, in each minute the size of cake **doubles** as compared to its **previous size**. In this cake, baking of cake is directly proportional to its size. You are given $a$, the total time taken(in minutes) to bake the whole cake. Let cake be half baked at $k^{th}$ minute. Your task is to find the value of $k+2$. ###Input:

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