Remove All Adjacent Duplicates from a String
In this lesson, we will learn how to remove all adjacent duplicates from a string using recursion.
We'll cover the following
What does “Removing Adjacent Duplicates from a String” Mean?
This means that we will remove all extra instances of a character when multiple instances are found together. In other words, only one instance should remain after this process.
Lower and upper case letters are considered different characters. Example: string
Hhelo
does not contain any duplicates.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy