Skip to content

Tag Archives: cpp-strings

Given string str. The task is to find the longest sub-string which is a prefix, a suffix, and a sub-string of the given string, str.… Read More
Given a string array str[], the task is to find the first string from the given array whose reverse is also present in the same… Read More
Given two strings A and B of equal size. Two strings are equivalent either of the following conditions hold true: 1) They both are equal. Or, 2)… Read More
Given a string str containing lower case alphabets and character ‘?’. The task is to check if it is possible to make str good or… Read More
Given an integer K and a numeric string str (all the characters are from the range [‘0’, ‘9’]). The task is to count the number… Read More
Given a integer k and a string str, the task is to count the number of distinct sub-strings such that each sub-string does not contain… Read More
Given an integer K and a string str of lowercase English characters, the task is to find a string s such that when s is… Read More
Given a string S containing letters and ‘#‘. The ‘#” represents a backspace. The task is to print the new string without ‘#‘. Examples:  Input… Read More

Start Your Coding Journey Now!