Skip to content

Tag Archives: cpp-strings

Given an array of strings arr[] consisting of lowercase and uppercase characters only, the task is to modify the array by removing the characters from… Read More
Ropes are scalable string implementation. They are designed for efficient operation that involves the string as a whole. Operations such as assignment, concatenation, and sub-string… Read More
What is string::npos: It is a constant static member value with the highest possible value for an element of type size_t. It actually means until… Read More
Given a positive integer N, representing the count of players playing the game and an array of strings arr[], consisting of the numeric strings made… Read More
Given an array of strings arr[], the task is to find the count of distinct strings present in the array using polynomial rolling hash function.… Read More
Given an array of strings arr[], consisting of strings made up of lowercase and uppercase letters, the task is to print all the strings from… Read More
Given a string, str, the task is to find the indices of the given string such that the count of lexicographically smaller characters on the… Read More
Given a string S consisting of only lowercase English letters. The task is to find the minimum number of times of finger moves to type… Read More
Given string str, the task is to check whether a string is pangram or not using in C++. A string is a Pangram if the… Read More
What is String-Hashing?  String hashing is the way to convert a string into an integer known as a hash of that string.An ideal hashing is… Read More
std::string::crbegin() The std::string::crbegin() is a string class built-in function that returns a constant reverse iterator referring to the last element in the string. Using this… Read More
Given a string S, the task is to find the permutation of the string such that palindromic substrings in the string are maximum.Note: There can… Read More
The std::string::rfind is a string class member function that is used to search the last occurrence of any character in the string. If the character… Read More
Given two strings A and B, the task is to print all the non-repeating words out of the two given sentences. Examples:  Input: A = “I… Read More
The std::string::find_last_of is a string class member function which is used to find the index of last occurrence of any characters in a string. If… Read More