← All problemsSign in

Can killua save them all

Oh no! The imposter on the Airship has sabotaged the Oxygen supply of the ship. The crewmates are now in grave danger. They need to get through a sequence of $Q$ doors in order to reach the $O_2$ tanks. Let us first define a string as a pesudo-palindrome if any rotation of the string (including the string itself) results in the formation of a palindrome. For example, "bba" is a pesudo-palindrome

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