← All problemsSign in

Angry Thanos

Angry Thanos gives a last chance to avengers to save humanity otherwise he will snap his finger and wipe out half the population. Thanos gives avengers a string $S$ consisting of lowercase letters from $a$ to $t$. But the string $S$ is magical and the magic lies in the string changing itself automatically every second. So, each second ***atmost*** one letter of the string can change itself to any

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