Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
len username
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started