Queue DSA Problems

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 (Easy)
  2. Implement Queue using Stacks (Easy)
  3. Implement Stack using Queues (Easy)
  4. Moving Average from Data Stream (Easy)
  5. Number of Recent Calls (Easy)
  6. Number of Students Unable to Eat Lunch (Easy)
  7. Time Needed to Buy Tickets (Easy)
  8. Continuous Subarrays (Medium)
  9. Count Partitions With Max-Min Difference at Most K (Medium)
  10. Count Prime-Gap Balanced Subarrays (Medium)
  11. Design Circular Deque (Medium)
  12. Design Circular Queue (Medium)
  13. Design Front Middle Back Queue (Medium)
  14. Design Hit Counter (Medium)
  15. Design Phone Directory (Medium)
  16. Design Ride Sharing System (Medium)
  17. Design Snake Game (Medium)
  18. Dota2 Senate (Medium)
  19. Find Consecutive Integers from a Data Stream (Medium)
  20. Find the Winner of the Circular Game (Medium)
  21. First Unique Number (Medium)
  22. Flatten Nested List Iterator (Medium)
  23. Implement Router (Medium)
  24. Jump Game VI (Medium)
  25. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit (Medium)
  26. Maximum Sum Circular Subarray (Medium)
  27. Minimum Operations to Make Binary Array Elements Equal to One I (Medium)
  28. Number of People Aware of a Secret (Medium)
  29. Reveal Cards In Increasing Order (Medium)
  30. Zigzag Iterator (Medium)
  31. Constrained Subsequence Sum (Hard)
  32. Count Non-Decreasing Subarrays After K Operations (Hard)
  33. Count Subarrays With Fixed Bounds (Hard)
  34. Delivering Boxes from Storage to Ports (Hard)
  35. Design an Array Statistics Tracker (Hard)
  36. Find Maximum Non-decreasing Array Length (Hard)
  37. Finding MK Average (Hard)
  38. K Empty Slots (Hard)
  39. Longest Increasing Subsequence II (Hard)
  40. Max Value of Equation (Hard)
  41. Maximize the Minimum Powered City (Hard)
  42. Maximum Number of Robots Within Budget (Hard)
  43. Maximum Number of Tasks You Can Assign (Hard)
  44. Minimum Number of K Consecutive Bit Flips (Hard)
  45. Minimum Sum of Values by Dividing Array (Hard)
  46. Shortest Subarray with Sum at Least K (Hard)
  47. Sliding Window Maximum (Hard)
  48. Stamping The Sequence (Hard)
  49. Time Taken to Cross the Door (Hard)

Companies that ask queue problems

Before your interview

Most resumes are filtered by software before a recruiter reads them. Check your resume ATS score free, no signup needed.

Other DSA topics