← All problemsSign in

Mr Thakkar want to go dream land

Mr.DBShah is the creater of this beautiful place. So being the creater of these island Mr.DBShah has the power take travels from x to 2x island in return of 2 pound and Mr.Rudani who is best friend of Mr.DBShah and help him to create this beautiful land so he has power to travel x to x+1 island in return of 1 pound. A group of n island (1 to 10^3) created by Mr.DBShah and Mr.Rudani, each one more

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