Queue and Deque coding problems
Queues and deques power level-order processing, sliding window maximums and simulation problems. Practise using the right end at the right time.
16 problems: 9 easy, 7 medium, 0 hard. Free to read; a free account solves them and earns XP and Aura.
- Duplicate Element RemoverPractice · +10 XP · queue, simulation, seteasy
- Find the First Negative NumberPractice · +10 XP · queue, simulation, arrayseasy
- First Unique CharacterPractice · +10 XP · queue, string, frequency mapeasy
- Print Elements with Even IndexPractice · +10 XP · queue, simulation, basic iterationeasy
- Print Queue ContentsPractice · +10 XP · queue, simulation, basic programmingeasy
- Process First In First OutPractice · +10 XP · queue, simulation, beginnereasy
- Queue ReverserPractice · +10 XP · queue, stack, simulationeasy
- Reverse First K ElementsPractice · +10 XP · queue, stack, simulationeasy
- Sequence ReverserPractice · +10 XP · queue, deque, simulationeasy
- Balanced Parentheses SubsequencePractice · +20 XP · queue, stack, simulationmedium
- Find Minimums in Sliding WindowsPractice · +20 XP · heaps, sliding window, dequemedium
- Largest Element in PrefixPractice · +20 XP · queue, monotonic deque, simulationmedium
- Longest Prefix With Maximum FrequencyPractice · +20 XP · queue, simulation, monotonic dequemedium
- Maximum Subarray Sum with Fixed LengthPractice · +20 XP · queue, sliding window, prefix summedium
- Next Greater Element in a Cyclic ArrayPractice · +20 XP · queue, stack, monotonic stackmedium
- Sliding Window MinimumPractice · +20 XP · queue, sliding window, monotonic dequemedium
Solve these free. Get paid in XP and Aura.
One tap with Google, no card. Every first accepted solve pays XP for the leaderboards and Aura for real goodies.
Other topics
Hash Map and Hashing101Arrays88Prefix Sums64SQL and Databases64Beginner Coding Problems60Graphs, BFS and DFS45Greedy41Sliding Window39Dynamic Programming37Sorting36Math and Number Theory36Strings35Two Pointers35Stack29Binary Search25Simulation25Recursion22Linked List20Trees20Heap and Priority Queue18Matrix and Grid18Bit Manipulation18