Skip to content

Tag Archives: cpp-string

In this article, we will learn how to convert String To Float/Double And Vice-Versa. In order to do conversion we will be using the following… Read More
This article discusses converting a hex string to a signed integer in C++. There are 5 ways to do this in C++: Using stoi() function.… Read More
Delimiters are used as separators between the characters or words in a string so that different results can get separated by the delimiter. In this… Read More
Let’s implement bitset in C++, such that following operations can be performed in stated time complexities : init(int size): initializes a bitset of size number… Read More
Given string S of size N, the task is to find the sum of the alphabet value of each character in the given string. Examples:… Read More
Given a string S of size N representing a monoalphabetic cipher, the task is to print the top five possible plain texts that can be… Read More
Given a string S of length N, the task is to make all characters of the string the same by incrementing/decrementing the ASCII value of… 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
The strtok() function is used in tokenizing a string based on a delimiter. It is present in the header file “string.h” and returns a pointer… Read More
Given a string str of length N, the task is to traverse the string and print all the characters of the given string. Examples: Input:… Read More
Given a string S consisting of space-separated integers, the task is to extract the Kth number present in the string. Note: The string contains at… Read More
Prerequisite: Trie | (Insert and Search) Given an array of strings words[] and a partial string str, the task is to find the strings of… Read More
Given a string str, the task is to check if string str is a substring of an infinite length string S in which lowercase alphabets… Read More
Given string str of lower case alphabets, the task is to find the minimum cost to change the input string in a string that contains… Read More

Start Your Coding Journey Now!