Archive of posts with category 'Stacks'

Implementing Queue using Stacks

We have done some problems using stack and today we are trying to do more of a conceptual exercise.

Minimum Remove to Make Valid Parentheses

Stack is another important data structure. The parentheses validity check is a classic question that can be solved using a stack. It’s by pushing the opening parentheses to stack and...