Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Mathematical
7.8K+ articles
Strings
3.3K+ articles
Greedy
2.1K+ articles
Searching
1.7K+ articles
Hash
1.3K+ articles
binary-string
384+ articles
substring
358+ articles
strings
119+ 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
String Duplicates
Pattern Searching
substring
strings
DSA
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
String Duplicates
Greedy
prefix
substring
DSA
Minimum distance between duplicates in a String
Last Updated: 10 January 2022
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
Strings
String Duplicates
Algorithms
Greedy
Hash
Python
DSA
Count distinct emails present in a given array
Last Updated: 14 February 2023
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
Arrays
Strings
String Duplicates
Hash
Technical Scripter
HashSet
Technical Scripter 2020
DSA
Print all distinct strings from a given array
Last Updated: 18 June 2021
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
String Duplicates
Hash
cpp-unordered_set
DSA
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
String Duplicates
Greedy
Searching
strings
DSA
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
String Duplicates
Mathematical
binary-string
DSA
Print all the duplicate characters in a string
Last Updated: 30 July 2024
Given a string S, the task is to print all the duplicate characters with their occurrences in the given string.Example:Input: S = "geeksforgeeks"Output: e, count = 4 g, co...
read more
Strings
String Duplicates
DSA
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !