Exercises - Cracking the Coding Interview
Chapter 3 - Stacks and Queues
- Problem 3.1 - Implement 3 stacks using one array
- Problem 3.2 - Find the minimum value in a stack in constant time
- Problem 3.3 - Implement a SetOfStacks object with the same operations as a Stack
- Problem 3.4 - Implement a MyQueue class using two stacks
- Problem 3.5 - Sort a stack from smallest to largest elements using only one temporary stack as a buffer
- Problem 3.6 - Implement an animal shelter adoption queue using LinkedList class
Problem 3.1 - Implement 3 stacks using one array
Problem 3.2 - Find the minimum value in a stack in constant time
Problem 3.3 - Implement a SetOfStacks object with the same operations as a Stack
Problem 3.4 - Implement a MyQueue class using two stacks
Problem 3.5 - Sort a stack from smallest to largest elements using only one temporary stack as a buffer
Problem 3.6 - Implement an animal shelter adoption queue using LinkedList class