Artist Chef
CodeChefOpen on judge ↗
Chef is writing a poem, for which he’s been given a rhyme scheme, R, in form of a string. He’s finally able to write a poem string, P but wants you to check if the poem matches the rhyme scheme or not. Given a string R for the rhyme scheme and a string P for the poem that chef wrote, you need to print “YES” if all words in P follow the rhyme scheme R. Note: R and P only contain lowercase English
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