# Queue DSA Problems

> 49 Queue coding problems for placements and interviews, sorted easiest first, with hints and company tags. Free practice on InternHack.

Canonical: https://www.internhack.in/learn/dsa/queue
Last updated: 2026-11-28

49 queue problems for coding interviews and campus placements, with hints and company tags. Below are all 49: 7 easy, 23 medium and 19 hard. Practise them free on InternHack and track what you have solved.

## Queue problems, easiest first

1. [First Unique Character in a String](https://www.internhack.in/learn/dsa/problem/first-unique-character-in-a-string) (Easy)
2. [Implement Queue using Stacks](https://www.internhack.in/learn/dsa/problem/implement-queue-using-stacks) (Easy)
3. [Implement Stack using Queues](https://www.internhack.in/learn/dsa/problem/implement-stack-using-queues) (Easy)
4. [Moving Average from Data Stream](https://www.internhack.in/learn/dsa/problem/moving-average-from-data-stream) (Easy)
5. [Number of Recent Calls](https://www.internhack.in/learn/dsa/problem/number-of-recent-calls) (Easy)
6. [Number of Students Unable to Eat Lunch](https://www.internhack.in/learn/dsa/problem/number-of-students-unable-to-eat-lunch) (Easy)
7. [Time Needed to Buy Tickets](https://www.internhack.in/learn/dsa/problem/time-needed-to-buy-tickets) (Easy)
8. [Continuous Subarrays](https://www.internhack.in/learn/dsa/problem/continuous-subarrays) (Medium)
9. [Count Partitions With Max-Min Difference at Most K](https://www.internhack.in/learn/dsa/problem/count-partitions-with-max-min-difference-at-most-k) (Medium)
10. [Count Prime-Gap Balanced Subarrays](https://www.internhack.in/learn/dsa/problem/count-prime-gap-balanced-subarrays) (Medium)
11. [Design Circular Deque](https://www.internhack.in/learn/dsa/problem/design-circular-deque) (Medium)
12. [Design Circular Queue](https://www.internhack.in/learn/dsa/problem/design-circular-queue) (Medium)
13. [Design Front Middle Back Queue](https://www.internhack.in/learn/dsa/problem/design-front-middle-back-queue) (Medium)
14. [Design Hit Counter](https://www.internhack.in/learn/dsa/problem/design-hit-counter) (Medium)
15. [Design Phone Directory](https://www.internhack.in/learn/dsa/problem/design-phone-directory) (Medium)
16. [Design Ride Sharing System](https://www.internhack.in/learn/dsa/problem/design-ride-sharing-system) (Medium)
17. [Design Snake Game](https://www.internhack.in/learn/dsa/problem/design-snake-game) (Medium)
18. [Dota2 Senate](https://www.internhack.in/learn/dsa/problem/dota2-senate) (Medium)
19. [Find Consecutive Integers from a Data Stream](https://www.internhack.in/learn/dsa/problem/find-consecutive-integers-from-a-data-stream) (Medium)
20. [Find the Winner of the Circular Game](https://www.internhack.in/learn/dsa/problem/find-the-winner-of-the-circular-game) (Medium)
21. [First Unique Number](https://www.internhack.in/learn/dsa/problem/first-unique-number) (Medium)
22. [Flatten Nested List Iterator](https://www.internhack.in/learn/dsa/problem/flatten-nested-list-iterator) (Medium)
23. [Implement Router](https://www.internhack.in/learn/dsa/problem/implement-router) (Medium)
24. [Jump Game VI](https://www.internhack.in/learn/dsa/problem/jump-game-vi) (Medium)
25. [Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit](https://www.internhack.in/learn/dsa/problem/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit) (Medium)
26. [Maximum Sum Circular Subarray](https://www.internhack.in/learn/dsa/problem/maximum-sum-circular-subarray) (Medium)
27. [Minimum Operations to Make Binary Array Elements Equal to One I](https://www.internhack.in/learn/dsa/problem/minimum-operations-to-make-binary-array-elements-equal-to-one-i) (Medium)
28. [Number of People Aware of a Secret](https://www.internhack.in/learn/dsa/problem/number-of-people-aware-of-a-secret) (Medium)
29. [Reveal Cards In Increasing Order](https://www.internhack.in/learn/dsa/problem/reveal-cards-in-increasing-order) (Medium)
30. [Zigzag Iterator](https://www.internhack.in/learn/dsa/problem/zigzag-iterator) (Medium)
31. [Constrained Subsequence Sum](https://www.internhack.in/learn/dsa/problem/constrained-subsequence-sum) (Hard)
32. [Count Non-Decreasing Subarrays After K Operations](https://www.internhack.in/learn/dsa/problem/count-non-decreasing-subarrays-after-k-operations) (Hard)
33. [Count Subarrays With Fixed Bounds](https://www.internhack.in/learn/dsa/problem/count-subarrays-with-fixed-bounds) (Hard)
34. [Delivering Boxes from Storage to Ports](https://www.internhack.in/learn/dsa/problem/delivering-boxes-from-storage-to-ports) (Hard)
35. [Design an Array Statistics Tracker](https://www.internhack.in/learn/dsa/problem/design-an-array-statistics-tracker) (Hard)
36. [Find Maximum Non-decreasing Array Length](https://www.internhack.in/learn/dsa/problem/find-maximum-non-decreasing-array-length) (Hard)
37. [Finding MK Average](https://www.internhack.in/learn/dsa/problem/finding-mk-average) (Hard)
38. [K Empty Slots](https://www.internhack.in/learn/dsa/problem/k-empty-slots) (Hard)
39. [Longest Increasing Subsequence II](https://www.internhack.in/learn/dsa/problem/longest-increasing-subsequence-ii) (Hard)
40. [Max Value of Equation](https://www.internhack.in/learn/dsa/problem/max-value-of-equation) (Hard)
41. [Maximize the Minimum Powered City](https://www.internhack.in/learn/dsa/problem/maximize-the-minimum-powered-city) (Hard)
42. [Maximum Number of Robots Within Budget](https://www.internhack.in/learn/dsa/problem/maximum-number-of-robots-within-budget) (Hard)
43. [Maximum Number of Tasks You Can Assign](https://www.internhack.in/learn/dsa/problem/maximum-number-of-tasks-you-can-assign) (Hard)
44. [Minimum Number of K Consecutive Bit Flips](https://www.internhack.in/learn/dsa/problem/minimum-number-of-k-consecutive-bit-flips) (Hard)
45. [Minimum Sum of Values by Dividing Array](https://www.internhack.in/learn/dsa/problem/minimum-sum-of-values-by-dividing-array) (Hard)
46. [Shortest Subarray with Sum at Least K](https://www.internhack.in/learn/dsa/problem/shortest-subarray-with-sum-at-least-k) (Hard)
47. [Sliding Window Maximum](https://www.internhack.in/learn/dsa/problem/sliding-window-maximum) (Hard)
48. [Stamping The Sequence](https://www.internhack.in/learn/dsa/problem/stamping-the-sequence) (Hard)
49. [Time Taken to Cross the Door](https://www.internhack.in/learn/dsa/problem/time-taken-to-cross-the-door) (Hard)

## Companies that ask queue problems

- [Google](https://www.internhack.in/learn/dsa/companies/google): 41 of these problems
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon): 36 of these problems
- [Meta](https://www.internhack.in/learn/dsa/companies/meta): 27 of these problems
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft): 27 of these problems
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg): 21 of these problems
- [Uber](https://www.internhack.in/learn/dsa/companies/uber): 9 of these problems
- [Apple](https://www.internhack.in/learn/dsa/companies/apple): 8 of these problems
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs): 8 of these problems
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex): 7 of these problems
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle): 5 of these problems
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs): 5 of these problems
- [Qualcomm](https://www.internhack.in/learn/dsa/companies/qualcomm): 4 of these problems

## Before your interview

Most resumes are filtered by software before a recruiter reads them. [Check your resume ATS score free](https://www.internhack.in/ats-score/try), no signup needed.

## Other DSA topics

- [Array](https://www.internhack.in/learn/dsa/array) (1869)
- [String](https://www.internhack.in/learn/dsa/string) (775)
- [Hash Table](https://www.internhack.in/learn/dsa/hash-table) (708)
- [Math](https://www.internhack.in/learn/dsa/math) (564)
- [Dynamic Programming](https://www.internhack.in/learn/dsa/dynamic-programming) (557)
- [Sorting](https://www.internhack.in/learn/dsa/sorting) (464)
- [Greedy](https://www.internhack.in/learn/dsa/greedy) (407)
- [Depth-First Search](https://www.internhack.in/learn/dsa/depth-first-search) (314)
- [Binary Search](https://www.internhack.in/learn/dsa/binary-search) (298)
- [Matrix](https://www.internhack.in/learn/dsa/matrix) (246)
- [Breadth-First Search](https://www.internhack.in/learn/dsa/breadth-first-search) (245)
- [Bit Manipulation](https://www.internhack.in/learn/dsa/bit-manipulation) (238)
- [Tree](https://www.internhack.in/learn/dsa/tree) (235)
- [Two Pointers](https://www.internhack.in/learn/dsa/two-pointers) (217)
- [Prefix Sum](https://www.internhack.in/learn/dsa/prefix-sum) (204)
- [Database](https://www.internhack.in/learn/dsa/database) (197)
- [Heap (Priority Queue)](https://www.internhack.in/learn/dsa/heap-priority-queue) (196)
- [Simulation](https://www.internhack.in/learn/dsa/simulation) (177)
- [Counting](https://www.internhack.in/learn/dsa/counting) (174)
- [Binary Tree](https://www.internhack.in/learn/dsa/binary-tree) (169)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA](https://www.internhack.in/learn/dsa)
