Count the occurences of given substring in a String
Get a String and Substring and count the occurrence of substring in string.
Sample Input 1:
Sample Output 1:
Program or Solution
check whether first character of sub string is equal to any character in string.
If it is equal, then check remaining characters are equal to the characters in substring.
else move to next character.
- Print the characters of String with space
- Find the Length of given String
- Find the location of given Character in a String
- Count the occurences of given Character in a String
- Covert Lowercase characters to Uppercase Characters
- Covert Uppercase characters to Lowercase Characters
- Count the number of vowels in given string
- Compare two Strings are equal
- Concate two given Strings
- Find the location of given sub string in a String
- Reverse the given String
- Check the given string is Palindronme
- Remove the spaces in given String
- Remove the Vowels in given String