Back
Close

Find Substring

Statement

 Goal

You have to find Substring.
But It is game of Mind.
You have to use Mind.
Input
1. If String = "Hello Agnosticdev, I love Tutorials"
2 .if there is no string.
Output
1. then substring = "Agnosticdev"
2. then print(nothing)
Constraints
Example
Input
"Hello Ayush, I love Tutorials"
Output
Your substring was found!

Game modes
Fastest, Shortest

Test cases
Test 1 Test
Input
"Hello Ayush, I love Tutorials"
Output
Your substring was found!

Validator 1 Validator
Input
"Hello John, I like your coding"
Output
Your substring was found!

Test 2 Test
Input
"Hello Agnosticdev, I love Tutorials"
Output
Your substring was found!

Validator 2 Validator
Input
"Hello How are you"
Output
Your substring was found!

Test 3 Test
Input
"Hello Codingame, I like You"
Output
Your substring was found!

Validator 3 Validator
Input
"Hello Westicles, How are You"
Output
Your substring was found!

Test 4 Test
Input
"Hello prgrmrO_O, Looking good"
Output
Your substring was found!

Validator 4 Validator
Input
"Hello ChampionCoder, Whatsup"
Output
Your substring was found!

Solution language

Solution

Stub generator input