Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Java Data Structures and Algorithms
·
Module 5
Stacks, Queues, and Deques
1
Implementing Stacks: Array vs. Linked List
Implement a stack using both an array and a linked list.
2
Balanced Parentheses with Stacks
Solve the balanced parentheses problem using a stack.
3
Monotonic Stack for Next Greater Element
Solve the 'next greater element' problem using a monotonic stack.
4
Implementing Queues: Circular Arrays & Linked Lists
Implement a queue using both a circular array and a linked list.
5
Queue from Stacks: Implementation and Amortized Analysis
Implement a queue using two stacks and analyze its amortized time complexity.
6
Implementing a Deque with a Doubly Linked List
Implement a deque using a doubly linked list.
7
Sliding Window Maximum with Deque
Solve the 'sliding window maximum' problem efficiently using a deque.
8
Infix to Postfix Conversion and Evaluation
Convert an infix expression to postfix and evaluate it using a stack.
Previous module
Linked Lists
Next module
Trees: Traversals and Problems