← All problemsSign in

STRENGTH OF MAJIN BUU

After a tough fight against Goku, Majin Buu is disintegrated into $N$ parts with each part possessing a strength of $S[i]$. Majin Buu’s master Babidi has to integrate his body by picking up one part at a time. Babidi has an evil curse as his secret weapon in which every part he chooses its strength increases from $S[i]$ to $S[ i - 1 ] * S[ i ] *S[ i + 1]$. Once a part is integrated, it can no lon

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