POWERFUL SUBSTRING
CodeChefOpen on judge ↗
Red Skull likes listening to music and (occasionally) reading. No wonder he is especially interested in texts concerning his favourite music. Red Skull calls a string good if it starts with "hail" and ends with "hydra". Finding all good substrings (by substring Red Skull means a subsequence of consecutive characters in a string) in a given text makes our villain especially joyful. Recently he f
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.
Sign in to chat with the tutor and save your progress.
Sign in to start