← All problemsSign in

Are You Worthy

Have you ever been to Asgard? Well, you should! There is a new wave of coding running there. Every Asgardian is learning how to code there in order to become the best coder of Asgard. Seeing this enthusiasm Thor has devised a new way to select a worthy person for his hammer, Mjølnir! He challenged Asgardians that whoever will solve his queries first shall be declared as worthy and can pick Mjøln

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