Question: Common Username coding Problem Statement The person is trying to make various accounts on DoSelect with different Usernames. Given that he's the same person there
Common Username
coding
Problem Statement
The person is trying to make various accounts on DoSelect with different Usernames. Given that he's the same person there is supposed to be some similarity between the usernames. Given usernames and a value find if there is a common substring between all the usernames of length at least
Return 'YES' if there is a common substring of length else return NO
Input Format
Firstline contains the number of usernames.
Next, lines contain usernames of an array username.
Last line contains the integer
Constraints
lenusername
lenusernamei
Output Format
Return 'YES' or NO based on the conditions.
Evaluation Parameters
Sample Input
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
