Remove consecutive duplicate characters in a string C++ Remove Consecutive Duplicates Send Feedback For a given string(str), remove all the...
change the case of string in c++
1. Change the case of string in python in C++ Write a function that converts a given string to lower case. Assume, given string contains upp...
Find string in another string in C++
Find string in another string in C++ Given two strings S and T, write a function to find if T is present as a substring inside S or not. If...
reverse each word in a string c++
Reverse each word in a string c++ Aadil has been provided with a sentence in the form of a string as a function parameter. The task is to i...
Find all substrings of a string in C++
Find all substrings of a string in C++ For a given input string(str), write a function to print all the possible substrings. Substring A su...
trim spaces in string c++
Trim spaces in string c++ Given an input string S that contains multiple words, you need to remove all the spaces present in the input stri...
Replace character in string c++
Replace character in string c++ Given an input string S and two characters c1 and c2, you need to replace every occurrence of character c1 ...
String Palindrome in c++
String Palindrome Given a string, determine if it is a palindrome, considering only alphanumeric characters. Palindrome A palindrome is a ...
Push Zeros to end
Push Zeros to end You have been given a random integer array/list(ARR) of size N. You have been required to push all the zeros that are pr...
Merge Two Sorted Arrays
Merge Two Sorted Arrays You have been given two sorted arrays/lists(ARR1 and ARR2) of size N and M respectively, merge them into a third a...
Subscribe to:
Posts
(
Atom
)