Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Mathematical
5.1K+ articles
Strings
2.1K+ articles
Greedy
1.4K+ articles
Searching
1.0K+ articles
Hash
831+ articles
binary-string
384+ articles
substring
358+ articles
strings
122+ articles
String Duplicates
8 posts
Recent Articles
Popular Articles
Remove all occurrences of a string t in string s using Boyer-Moore Algorithm
Last Updated: 31 July 2023
Given a string s and string t, the task is to remove all occurrences of a string t in a string s using the Boyer-Moore algorithm.Examples:Input: s = "ababaababa", t = "aba...
read more
Strings
Pattern Searching
DSA
String Duplicates
Data Structures
substring
strings
Remove longest prefix of the String which has duplicate substring
Last Updated: 12 April 2022
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 present in S.Note: The duplicate substring ...
read more
Strings
Greedy
DSA
String Duplicates
prefix
substring
Minimum distance between duplicates in a String
Last Updated: 23 July 2025
Given a string S and its length N (provided N 0). The task is to find the minimum distance between same repeating characters, if no repeating characters present in string...
read more
DSA
String Duplicates
Count distinct emails present in a given array
Last Updated: 23 July 2025
Given an array arr[] consisting of N strings where each string represents an email address consisting of English alphabets, '.', '+' and '@', the task is to count the numb...
read more
Strings
Hash
Technical Scripter
Technical Scripter 2020
DSA
Arrays
String Duplicates
HashSet
Print all distinct strings from a given array
Last Updated: 23 July 2025
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: arr[] = { "Geeks", "For", "Geeks", "Cod...
read more
Strings
Hash
DSA
String Duplicates
cpp-unordered_set
Maximize cost of deletions to obtain string having no pair of similar adjacent characters
Last Updated: 14 December 2021
Content has been removed on Author’s request....
read more
Strings
Greedy
Searching
DSA
String Duplicates
strings
Find the n-th binary string in sorted order
Last Updated: 01 November 2023
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 a and b sorted lexicographically (Di...
read more
Mathematical
DSA
String Duplicates
binary-string
Print all the duplicate characters in a string
Last Updated: 12 June 2025
Given a string s, the task is to identify all characters that appear more than once and print each as a list containing the character and its count. Examples:Input: s = "g...
read more
Strings
DSA
String Duplicates