First April
CodeChefOpen on judge ↗
As it's the first of April, Chef is suspecting that the news he reads today are fake, and he does not want to look silly in front of all the contestants. He knows that a news piece is $not$ fake if it contains $‘codechef’$ as a subsequence. Help Chef assess whether the given news piece is fake or not. A string s contains another string p as a subsequence if it is possible to delete some charact
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