Interesting Method to Generate Binary Numbers from 1 to n Given a number n, write a function that generates and prints all binary numbers
Category - Queue
C/C++ Programming Maximum of all sub arrays of size k Given an array and an integer k, find the maximum for each and every contiguous sub array of size k.
Find the first circular tour that visits all petrol pumps
Suppose there is a circle. There are n petrol pumps on that circle.
Check whether given binary tree complete not Given a Binary Tree, write a function to check whether the given Binary Tree is Complete Binary Tree or not.
queue data structure - implement queue using stacks The problem is opposite of this post. We are given a stack data structure
Implementation of Deque using circular array - Deque or Double Ended Queue is a generalized version of Queue data structure.
Queue Data Structure Deque - Data Structure - Deque or Double Ended Queue is a generalized version of Queue data structure that allows insert and delete.
Priority Queue - Priority Queue is an extension of queue with following properties. Every item has a priority associated with it.
Applications of Queue Data Structure
Queue is used when things don’t have to be processed immediatly, but have to be processed in First In First Out order