Python Deque Coding Practice Problems
Deque is often used in situations where we need to process items from either the front or the back of a collection, like in certain algorithms or for managing queues. In this collection of Deque coding practice problems, you'll explore different tasks to better understand how to work with deques and implement them in your projects.
Example Programs
- Implement Stack Using Deque
- Deque vs List
- Creating Queue Using Collections.Deque
- Implementation of Deque Using List
- Deque Implementation
- LIFOQueue vs Collections.Deque
Practice Problems
- K Sized Subarray Maximum
- First negative in every window of size k
- Rotten Oranges
- K Sized Subarray Maximum
- First negative in every window of size k
- Reverse first K of a Queue
- Longest Bounded-Difference Subarray
- Steps by Knight
- Police and Thieves