Home | Projects | Notes > Problem Solving > LC - E - 1209. Remove All Adjacent Duplicates In String 2 (stack, recursion)

LC - E - 1209. Remove All Adjacent Duplicates In String 2 (stack, recursion)

 

Solutions in C++

Solution 1

This solution uses STL stack container.

Complexity Analysis:

Solution:

 

Solution 2

This solution uses recursion. (My first solution)

Complexity Analysis:

Solution: