← All problemsSign in

Matt Damon in Mars

Matt Damon wants to escape Mars!! Desperately!! While he was collecting an award for his performance in "The Martian", Matt Damon found himself teleported all of a sudden to Mars. And now he has no means to get back to earth. However, Matt Damon has a unique Force Tree to help him with his esacpe attempts. A force tree has the following properties: - It's a tree where each vertex is numbered fr

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