Stack,
Queue and Heap
Basic Level Questions:
Stack:
• Implement a Stack Class with the following methods:
o push()
o pop()
o peek()
o empty()
o search()
[Follow here: [Link] ]
• Reverse a String using Stack
[Follow here: [Link] ]
• Check the expression has valid or Balanced parenthesis or not.
[Follow here: [Link] ]
• Implement two Stacks in an array
[Follow here: [Link] ]
Queue:
• Implement a Queue class(using arrays) with the following
methods:
o enqueue()
o dequeue()
o front()
o display()
[Follow here: [Link] ]
• Implement a Circular queue with the same methods in the
above problem statement
[Follow here: [Link]
implementation/ ]
• Implement a Deque (Doubly Ended Queue) with insertion and
deletion allowed at both the ends.
[Follow here: [Link] ]
Heap:
• Implement a Maxheap using arrays and recursion.
[Follow here: [Link] ]
• Implement a Minheap using arrays and recursion.
[Follow here: [Link] ]
• Sort an Array using heap. (HeapSort)
[Follow here: [Link] ]
• Maximum of all subarrays of size k.
[Follow here: [Link]
subarrays-of-size-k/ ]