Introduction
A program that will get a string and match it with a substring.
Usually when a programmer goes to an interview, the company asks to write the code of some program to check your logic and coding abilities.
You can write the code in any language, like C, C++, Java, C# and so on. There is no required language and technology because the company wants to check your ability to think and your skills to write the code.
Some companies only want the algorithm to check your skills.
One of the programs in those common programs is the following.
Question
You are given an input string, string1. Write a function to find whether string1 contains all the characters of the word “nagarro” in the same order as they appear in “nagarro”. The function will be true if the input string1 contains all the letters in the same order and false otherwise.
For example:
Input- string1= “nbacgddardsardo”
Output: True (explanation: “nbacgddardsardo”)
Input- string1= “anagarorpa”
Output: False (explanation: “anagarorpa”)
Input- string1= “nagarro01”
Output: True (explanation: “nagarro01”)
Create a new console application named "ConsoleApplication1".

Where you will get the page that will look like:

I will now provide the procedure for creating the code.





Karthik Muthu KaruppanPosted Mar 30, 2015, 11:17 AM
good one
Santhakumar MunuswamyPosted Mar 29, 2015, 3:10 AM
Thanks for nice article
Rahul Kumar SaxenaPosted Mar 29, 2015, 12:21 AM
Good Show..
Gowtham RajamanickamPosted Mar 28, 2015, 12:26 PM
and awesome article
Gowtham RajamanickamPosted Mar 28, 2015, 12:26 PM
thanks for sharing
Vijay SPosted Mar 28, 2015, 2:16 AM
Thanks for sharing ..
Khargesh RajputPosted Mar 27, 2015, 11:33 PM
interview asked question thanks for sharing