All problems
› Queue problems
Queue problems
30 Queue DSA practice problems on CampusCode, each with statement, examples and constraints.
579. Reverse First K Elements of Queue
Easy
Stack
580. Interleave First Half with Second Half
Easy
Stack
581. Generate Binary Numbers from 1 to N
Easy
Stack
582. BFS Level Order Traversal Using Queue
Easy
Stack
583. Check if Queue is Palindrome
Easy
Stack
585. Students Unable to Eat Lunch
Easy
Stack
586. Time Needed to Buy Tickets
Easy
Stack
587. First Non-Repeating Character in Stream
Easy
Stack
588. Number of Recent Calls
Easy
Stack
599. Task Scheduler — Simple Version
Easy
Stack
607. Rotting Oranges — BFS via Queue
Easy
Stack
622. Task Scheduler (Greedy + Queue)
Medium
Stack
625. Dota2 Senate
Medium
Stack
626. Reveal Cards in Increasing Order
Medium
Stack
627. Design Snake Game
Medium
Stack
628. Open the Lock (BFS + Queue)
Medium
Stack
639. Walls and Gates
Medium
Stack
640. Shortest Path in Binary Matrix
Medium
Stack
641. Perfect Squares
Medium
Stack
642. As Far from Land as Possible
Medium
Stack
643. Map of Highest Peak
Medium
Stack
647. Snakes and Ladders
Medium
Stack
649. Count of Students Unable to Eat Lunch
Medium
Stack
650. Minimum Number of Flips to Convert Binary Matrix to Zero
Medium
Stack
672. Shortest Path in a Grid with Obstacles Elimination
Hard
Stack
673. Sliding Puzzle — Minimum Moves
Hard
Stack
674. Cut Off Trees for Golf Event
Hard
Stack
675. Minimum Genetic Mutation
Hard
Stack
676. Word Ladder — Shortest Transformation
Hard
Stack
685. Bus Routes
Hard
Stack