Interview Solution

Fifty years of programming language research, and we end up with C++? Richard A. O’Keefe

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.