← All problemsSign in

Charles and the BRUTAL subsequences

CodeChefRating 2319Open on judge ↗

Donald: "Be careful! I need the girl" Logan: "What Girl??" Donald Pierce and his enforcers, the Reavers have captured Canibal, and have attacked Logan and Xavier. Prof. Charles Xavier proposes a plan. He is currently assessing several strings, and the answer lies in the common prefix of those strings. Charles asks Logan for rendering help. Logan is provided with some N strings – Str[1], Str[2

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