Given 2 String. WAP to check if a string is a substring of other.
Note: You should not use any predefined function and must deal with this logical by converting the string to character array and process it.
str1= "Hello World"
str2="Hello"
Answer: True
str1="Hello World"
str2="hellow"
Answer:True. You must ignore case sensitivity and spaces.
str1="Hello"
str1="hello"
Answer:True
Published By : Suraj Ghimire