Skip to content
Use code for 50% offSee plans

Queue Problems

40 Queue LeetCode problems · Solve with AI-powered hints & step-by-step explanations.

Learn the coding interview patterns behind these problems.

All Queue problems

225 Implement Stack using Queues Easy232 Implement Queue using Stacks Easy239 Sliding Window Maximum Hard341 Flatten Nested List Iterator Medium387 First Unique Character in a String Easy622 Design Circular Queue Medium641 Design Circular Deque Medium649 Dota2 Senate Medium862 Shortest Subarray with Sum at Least K Hard918 Maximum Sum Circular Subarray Medium933 Number of Recent Calls Easy936 Stamping The Sequence Hard950 Reveal Cards In Increasing Order Medium995 Minimum Number of K Consecutive Bit Flips Hard1425 Constrained Subsequence Sum Hard1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Medium1499 Max Value of Equation Hard1670 Design Front Middle Back Queue Medium1687 Delivering Boxes from Storage to Ports Hard1696 Jump Game VI Medium1700 Number of Students Unable to Eat Lunch Easy1823 Find the Winner of the Circular Game Medium1825 Finding MK Average Hard2071 Maximum Number of Tasks You Can Assign Hard2073 Time Needed to Buy Tickets Easy2327 Number of People Aware of a Secret Medium2398 Maximum Number of Robots Within Budget Hard2407 Longest Increasing Subsequence II Hard2444 Count Subarrays With Fixed Bounds Hard2526 Find Consecutive Integers from a Data Stream Medium2528 Maximize the Minimum Powered City Hard2762 Continuous Subarrays Medium2944 Minimum Number of Coins for Fruits Medium2945 Find Maximum Non-decreasing Array Length Hard3117 Minimum Sum of Values by Dividing Array Hard3191 Minimum Operations to Make Binary Array Elements Equal to One I Medium3420 Count Non-Decreasing Subarrays After K Operations Hard3508 Implement Router Medium3578 Count Partitions With Max-Min Difference at Most K Medium3589 Count Prime-Gap Balanced Subarrays Medium