Interview Solution

There’s an old story about the person who wished his computer were as easy to use as his telephone. That wish has come true, since I no longer know how to use my telephone. Bjarne Stroustrup

Find substring

Language Java | Level Intermediate | Category Interview Problems | July 24, 2015 4:52 pm

Comments


Interview Problem

Find a substring of given string without using the build in functions.
Write program to find a particular string in another string without using any inbuilt String class methods
Example:-
string "how" inside "how are you "


Output

   					 
string 'how' contains 'how are you': true
string 'hello' contains 'world': false


				    

Comments



Please login to add comments.