Skip to content

Category Archives: Strings

Given a very large number N, [1 ≤ length of digit of N (n) ≤ 106], the task is to find some positive integer of… Read More
Given a string S representing a Morse Code, the task is to check is the code is valid or not. A Morse code is valid… Read More
Given a string S of length N, the task is to find the maximum possible product of the first and the last character of the… Read More
Given an array of N strings, the task is to find if it is possible to make all the strings equal by performing the following… Read More
Given a string S and a list of strings subs[] that stores the substrings of S and all the substrings are present only once, the… Read More
There are many instances when data is stored as key-value pairs. In Java, it can be achieved by “map” which is a collection. Keys usually… Read More
Given a string S consisting of lowercase English alphabets, of length N, the task is to find the total number of distinct strings that can… Read More
fgets() reads a line from the specified stream and stores it into the string pointed by str. It stops when either (n – 1) characters… Read More
In python, the ‘b‘ character before a string is used to specify the string as a “byte string“.  For example: b_str = b’Hey I am… Read More
In this article, we are going to discuss whether String is a primitive data type or a Derived data type. Definitely, String is not a… Read More
Given a string S on which you need to perform Q replace operations.Each replacement operation has 3 parameters: a starting index i, a source word… Read More
Given a string str consisting of N letters, the task is to find the total number of strings that can be generated by replacing each… Read More
Given a multidimensional array stringArr of strings and a keyString to be found, the task is to return the coordinates/indexes of that key string in… Read More
Given a string S of size N, having lowercase alphabets, the task is to find the lexicographically minimum string after moving a subsequence to the… Read More
String is a data structure that is similar to the array data structure in terms of representation, and implementation but in strings, we store a… Read More

Start Your Coding Journey Now!