Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
DSA
22.5k+ articles
Mathematical
7.7k+ articles
Strings
3.2k+ articles
Greedy
2k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
binary-string
370+ articles
substring
340+ articles
strings
100+ articles
cpp-unordered_set
90+ articles
String Duplicates
8 posts
Popular Articles
Recent 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:In
...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
...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 repeati
...read more
Strings
String Duplicates
Algorithms
Greedy
Hash
Python
DSA
Similar Topics
DSA
22.5k+ articles
Mathematical
7.7k+ articles
Strings
3.2k+ articles
Greedy
2k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
binary-string
370+ articles
substring
340+ articles
strings
100+ articles
cpp-unordered_set
90+ articles
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 '@'
...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[] =
...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
...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 = "geeksforg
...read more
Strings
String Duplicates
DSA
1
1
1
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 !