Skip to content

Tag Archives: String Duplicates

Given a string S of length N, the task is to remove the longest prefix of the string which has at least one duplicate substring… Read More
Given a string S and its length N (provided N > 0). The task is to find the minimum distance between same repeating characters, if… Read More
Given an array arr[] consisting of N strings where each string represents an email address consisting of English alphabets, ‘.’, ‘+’ and ‘@’, the task… Read More
Given an array of strings arr[] of size N, the task is to print all the distinct strings present in the given array.  Examples: Input:… Read More
Content has been removed on Author’s request. Recommended Solve DSA problems on GfG Practice. Solve Problems My Personal Notes arrow_drop_up Save
Given a positive integer n, the task is to find the nth string in the following infinite list of all possible strings over two symbols… Read More
Given a string str of lowercase characters, the task is to remove duplicates and return a resultant string without modifying the order of characters in… Read More
Algorithm: Let input string be "geeksforgeeks" 1: Construct character count array from the input string. count['e'] = 4 count['g'] = 2 count['k'] = 2 …… 2: Print all the indexes from the constructed array which have value greater than 0.

Start Your Coding Journey Now!