← All problemsSign in

Aegon Targaryen

Aegon Targaryen is very old and about to die. He looks at his family tree and sees his face on top, then his children, and then his children's children, and so on. All of these people, save for himself, are his descendants. Aegon Targaryen has a very strange way of deciding how much inheritance each of his descendants receives when he dies. In Aegon Targaryen's will, each of his N descendants sta

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