← All problemsSign in

Common Words (Keteki)

Given two sentences, if there is at least one common word in the two sentences print "Yes" else print "No". Input: T Sentence 1A Sentence 1B Sentence 2A Sentence 2B .... ... Sentence TA Sentence TB Output: Result for Sentence 1A and 1B Result for Sentence 2A and 2B ... Result for Sentence TA and TB Constraints: 1Example: Input: 2 going to two two of you who are you I am gone

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