## Stack and Queue in Python using queue Module

A simple python List can act as queue and stack as well. Queue mechanism is used widely and for many purposes in daily life. A… Read More »

- Minimize the maximum difference between adjacent elements in an array
- Real-time application of Data Structures
- Priority queue of pairs in C++ with ordering by first and second element
- Priority Queue of Vectors in C++ STL with Examples
- Find the K closest points to origin using Priority Queue
- Queue of Pairs in C++ STL with Examples
- Design a Queue data structure to get minimum or maximum in O(1) time
- Important functions of STL Components in C++
- Implementing Water Supply Problem using Breadth First Search
- What is a Webcrawler and where is it used?
- Boundary Level order traversal of a Binary Tree
- Diamond Tree
- Minimum circular rotations to obtain a given numeric string by avoiding a set of given strings
- Longest subarray whose elements can be made equal by maximum K increments
- Length of Smallest Subsequence such that sum of elements is greater than equal to K
- Sum and product of K smallest and largest Fibonacci numbers in the array
- Static and Dynamic data structures in Java with Examples
- Print all Exponential Levels of a Binary Tree
- CPU Scheduling in Operating Systems using priority queue with gantt chart
- Check if cells numbered 1 to K in a grid can be connected after removal of atmost one blocked cell
- Minimum difference between maximum and minimum value of Array with given Operations
- Minimum possible modifications in the matrix to reach destination
- Append the elements of queue in mirror-inverse order
- Maximum absolute difference between any two level sum in a Binary Tree
- Clockwise Triangular traversal of a Binary Tree
- Find integral points with minimum distance from given set of integers using BFS
- Array value by repeatedly replacing max 2 elements with their absolute difference
- Minimum Cost using Dijkstra by reducing cost of an Edge
- Different Types of Queues and its Applications
- Nth positive number whose absolute difference of adjacent digits is at most 1

A simple python List can act as queue and stack as well. Queue mechanism is used widely and for many purposes in daily life. A… Read More »

Deque also known as double eneded queue, as name suggests is a special kind of queue in which insertions and deletions can be done at… Read More »

Write a function to print ZigZag order traversal of a binary tree. For the below binary tree the zigzag order traversal will be 1 3… Read More »

Deque or Double Ended Queue is a generalized version of Queue data structure that allows insert and delete at both ends. In previous post Implementation… Read More »

I applied through an employee referral for SDET-1 position. I was interviewed at Amazon Chennai(SP Infocity).I faced 5 face to face rounds. On October 11th,… Read More »

Given a queue of integers of even length, rearrange the elements by interleaving the first half of the queue with the second half of the… Read More »

Online Coding Round: Time: 1.5 hr Questions Format: 20 MCQs + 2 Coding Questions MCQs were based on Data Structures, Operating systems etc. Coding Questions:… Read More »

Give an algorithm for reversing a queue Q. Only following standard operations are allowed on queue. enqueue(x) : Add an item x to rear of… Read More »

Given an integer k and a queue of integers, we need to reverse the order of the first k elements of the queue, leaving the… Read More »

Given two n-ary trees, the task is to check if they are mirror of each other or not. Print “Yes” if they are mirror of… Read More »

Given two binary trees, we have to check if each of their levels are anagrams of each other or not. Example: Tree 1: Level 0… Read More »

Coding Round: A variation of Knapsack Easy string manipulation problem A brute-force based string matching problem Technical Round 1: Finding the length of a Linked-List… Read More »

A stack permutation is a permutation of objects in the given input queue which is done by transferring elements from input queue to the output… Read More »

Given a non-empty binary tree, print the average value of the nodes on each level. Examples: Input : 4 / \ 2 9 / \… Read More »

Given a stream of characters and we have to find first non repeating character each time a character is inserted to the stream. Examples: Input… Read More »