DIY: Remove All Adjacent Duplicates In String
Solve the interview question "Remove All Adjacent Duplicates In String" in this lesson.
We'll cover the following
Problem Statement
Given a string s
consisting of lowercase English letters, you need to write code to repeatedly remove adjacent duplicate letters, one pair at a time.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.