TIT FOR TAT
CodeChefOpen on judge ↗
John, a student loves to text only girls and hates texting boys. His messages could never be understood easily and he deliberately sends such messages to irritate boys. Sridhar the recipient of most of his messages wanted to give him a taste of his own medicine. He started to send messages to John in a particular pattern. Sridhar would never leave spaces between the words and any word would begin
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