DIY: Remove All Adjacent Duplicates in String II
Solve the interview question "Remove All Adjacent Duplicates in String II" in this lesson.
Problem statement
For this problem, you are given one string strr
and an integer k
. Your task is to implement the remove_duplicates()
function. This function will find and remove the k
adjacent duplicate characters in the given strr
.
Constraints
- <=