← All problemsSign in

Gringotts!

One day Helix, a rather unusual customer, visits Gringotts. Griphook the goblin is startled upon hearing the vault number the customer wants to access. The requested vault number in its binary form has all its bits set. Griphook has a special cart that can transport him from one vault to another. Let’s say the vault they currently are is 18. By performing an operation on the binary form of 18:

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