(RankList for this Question)
You will be given t inputs, for each input write a function that takes two strings and checks whether they have any common substring. If they have at least one common substring* print Yes else print No.
(Substring - https://en.wikipedia.org/wiki/Substring)
All characters in the String are in lowercase
t - no. of inputs (Integer)
Yes if the particular input has a common substring else No.
The first input has at least 1 common substring.
The second input has at least 1 common substring.
The third input has 0 common substrings.
Log In to solve the Question