s

Stack

Total Programs :- 10

Basic Stack Operations

•Create a stack
•Check if its empty
•Push some items
•Pop some items
•Print the stack

Checkout here...

Representation of a Stack using Static Array

•Using maxsize from sys module
•Create stack with array
•Check stack is empty
•Push and Pop some items
•Print the stack

Checkout here...

Representation of a Stack using Dynamic Array

•Create nodes of linked list
•Check if its empty
•Add items
•Remove items
•Display the stack

Checkout here...

Two stacks in an array

•Create two stacks
•Push separately
•Don't forget, size of array has a limit
•Pop separately from stacks
•Print the stack

Checkout here...

Multiple stack implementation using single array

•Create required No. of Stacks
•Check for empty stacks
•Push and pop acordingly
•Print the stack

Checkout here...

Reverse a linked list using Stack

•Create a Linked List
•Push some items
•Create reverse function setup
•Print the reverse stack

Checkout here...

Factorial Calculation using stack

•Create a stack
•Check empty stack
•Add some items
•Remove some items
•Print Factorial of stack

Checkout here...

Infix to Postfix

•Remember the Algorithm
•Take input for Infix
•Give output as Postfix

Checkout here...

Postfix to Infix

•Algorithm is followed
•Take input for Postfix
•Give output as Infix

Checkout here...

Towers of Hanoi

•A mathematical puzzle
•Follow simple rules
•Accomplish the task

Checkout here...

Time to Connect

copyright ©2021

Arpit Somani