EdocGram
Home
(current)
Topics
EdocAI
Code Editor
HTML
Javascript
PHP
Python
Python AI Code Editor
More
Contact
About
Privacy Policy
Terms and Conditions
Log In
Topic
View
More
Topic
Hashing
Linked List
Queue
Stack
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Tree
Topic: queue-problem / Level: advanced
2001. Implement a queue that supports insertion, deletion, and retrieval of the median in O(1) time.
2002. Write a program to find the maximum sum of a subarray of size k using a queue.
2003. Implement a function to generate all permutations of a given string using a queue.
2004. Write a program to check if a sequence of numbers can represent a valid queue sequence.
2005. Design a data structure that supports the following operations in O(1) time: insert, delete, get random element, and retrieve maximum.
2006. Write a program to find the minimum cost of merging n sorted arrays using a priority queue.
2007. Implement a function that uses a queue to perform breadth-first search (BFS) in a graph.
2008. Write a program to find the longest valid parentheses substring using a queue.
2009. Implement a sliding window maximum algorithm using a queue.
2010. Write a program to simulate a multi-level feedback queue scheduling algorithm.
2011. Implement a function to solve the "maximum of all subarrays of size k" problem using a double-ended queue.
2012. Write a program to determine the order of processing in a queue given specific constraints.
2013. Implement a function to check if two queues are equal in terms of elements and order.
2014. Write a program to rotate a queue by k elements.
2015. Implement a function to find the first non-repeating character in a stream of characters using a queue.
2016. Write a program to simulate a round-robin scheduling algorithm using a queue.
2017. Implement a function that counts the number of islands in a grid using a queue.
2018. Write a program to perform a level-order traversal of a binary tree using a queue.
2019. Implement a queue that allows for batch operations, such as enqueueing and dequeueing multiple elements at once.
2020. Write a program to find the shortest path in an unweighted graph using a queue.
2021. Implement a function to sort a queue using another queue as auxiliary storage.
2022. Write a program to find the maximum product of any three numbers in a queue.
2023. Implement a queue that supports reversing the order of elements.
2024. Write a program to determine if a queue can represent a valid sequence of operations in a stack.
2025. Implement a queue that can serialize and deserialize itself.
2026. Write a program to compute the largest rectangle that can be formed in a histogram using a queue.
2027. Implement a function that calculates the minimum time required to complete all tasks using a queue.
2028. Write a program to find the longest common subsequence in two sequences using a queue.
2029. Implement a queue for managing events in a simulation environment.
2030. Write a program to detect a cycle in a directed graph using a queue.
2031. Implement a priority queue to manage tasks based on their priority levels.
2032. Write a program to evaluate a postfix expression using a queue.
2033. Implement a queue that supports peek operations on both ends.
2034. Write a program to find the longest path in a grid with obstacles using a queue.
2035. Implement a function to perform a breadth-first traversal of a graph represented as an adjacency list.
2036. Write a program to find the minimum number of operations to convert one string into another using a queue.
2037. Implement a function that uses a queue to track the state of a game or simulation.
2038. Write a program to merge multiple sorted queues into one sorted queue.
2039. Implement a function to find the maximum depth of a binary tree using a queue.
2040. Write a program to check if a queue can be rearranged to match another queues order.
2041. Implement a double-ended queue (deque) with basic operations.
2042. Write a program to find the kth largest element in a stream of numbers using a queue.
2043. Implement a function to rotate a queue by n positions to the right.
2044. Write a program to find all anagrams of a string in a given list using a queue.
2045. Implement a queue that supports batch processing of elements in O(n) time.
2046. Write a program to determine if its possible to construct a valid expression from a given sequence of numbers using a queue.
2047. Implement a function that returns the intersection of two queues.
2048. Write a program to find the longest substring without repeating characters using a sliding window and a queue.
2049. Implement a priority queue for managing jobs in a computing environment.
2050. Write a program to find the shortest path in a weighted graph using Dijkstras algorithm with a queue.
Previous
1
2
...
20
Next
More Levels
Beginner
Intermediate
Aniket The Programmer
This website is managed by aniket the programmer :)
Website
Instagram