# Category - Stack

## C Algorithm – Next Greater Element

C Algorithm - Next Greater Element - Stack - Given an array, print the Next Greater Element (NGE) for every element. The Next greater Element for an element

## Java Algorithm – Sort a stack using recursion

Java Algorithm - Sort a stack using recursion - Data Structure - Given a stack, sort it using recursion. Use of any loop constructs like while, for..etc

## C Algorithm – Sort a stack using recursion

C Algorithm - Sort a stack using recursion- Data Structure - Given a stack, sort it using recursion. Use of any loop constructs like while, for..etc

## C Algorithm – Reverse a stack using recursion

C Algorithm - Reverse a stack using recursion - Data Structure - Write a program to reverse a stack using recursion. You are not allowed to use

## Check for balanced parentheses in an expression

Check for balanced parentheses in an expression- Data Structure - Given an expression string exp , write a program to examine whether the pairs

## Java Algorithm – Implement two stacks in an array

Java Algorithm - Implement two stacks in an array - Data Structure - Create a data structure twoStacks that represents two stacks.

## Python Algorithm – Implement two stacks in an array

Python Algorithm - Implement two stacks in an array - Data Structure - Create a data structure twoStacks that represents two stacks.

## C++ Algorithm – Implement two stacks in an array

Cpp Algorithm - Implement two stacks in an array - Data Structure - Create a data structure twoStacks that represents two stacks.

## Python Algorithm – Reverse a String using Stack

Python Algorithm - Evaluation of Postfix Expression - Data Structure - Given a string, reverse it using stack. For example “GeeksQuiz” should be converted

## Java Algorithm – Reverse a String using Stack

Java Algorithm - Evaluation of Postfix Expression - Data Structure -Given a string, reverse it using stack. For example “GeeksQuiz” should be converted

X