Program To Print Unique Word Of A String Using Set
Description To print unique word from a string using set Step 1: Split the string from space and store it into a array of string to get all words. Step…
All Program Related To String And Data Structure
Description To print unique word from a string using set Step 1: Split the string from space and store it into a array of string to get all words. Step…
Description To print unique word from a string Step 1: Split the string from space and store it into a array of string to get all words. Step 2: Take…
Description To print occurrence of words in sentence take a variable count and traverse the sentence and if a word occure again increment the count. Example: Input : this is…
Description To count number of words in space separated string, loop through string and count the spaces present in the string as each word always ends with a space. Example…
Description There is array of strings in first string and another string having array of strings. Program is to concate first set of string and second set strings. Finally comapre…
Description Given a binary string str of length N. The task is to split the input string into substring of length L, find the substring that has the maximum occurrence…
Description To replace all spaces with dots, loop through string, when spaces encountered replace with dots. C/C++ /* C program to Replace Spaces With Dots */ //Save it as ReplaceSpaceWithDot.c…
Description To Add numbers present in a string check which character is number. If character is a number, Add it else ignore that character. C/C++ /* C program to Add…
Description To count total number of upper case, check how many character are from A-Z and to count total number of lower case, check how many character are from a-z…
Description To count vowels, consonants, digits and whitespaces, check the characters in string is vowel, consonant, digit and whitespaces and increase corresponding count. C/C++ /* C Program to count Vowels,…