Queue: A Queue is a linear data structure that follows a First In First Out (FIFO) order in which the operations are performed. It is… Read More

# Category Archives: Queue

Given an array arr[] consisting of N integers and an integer K, the task is to find the Kth smallest element in the array using… Read More

Prerequisite: Queue in Python Here given a queue and our task is to dump the queue into list or array. We are to see two… Read More

Given two arrays arr[] and jumps[] consisting of N positive integers, the task for each array element arr[i] is to find the minimum number of… Read More

Given string str, the task is to find the minimum count of characters that need to be deleted from the string such that the frequency… Read More

Given an integer N, a binary string S and an array W[]. S denotes the sequence of N * 2 persons entering the hall, where… Read More

Given an N-ary tree and an element X, the task is to print the siblings of the node with value X. Two nodes are considered… Read More

Given a Linked List of even number of nodes, the task is to generate a new Linked List such that it contains the maximum difference… Read More

Given two arrays A[] and B[] consisting of N integers, the task is to update array A[] by assigning every array element A[i] to a… Read More

Given a binary string, str, two integer arrays R[], and C[] of size N. Flipping all the characters from index i to R[i] requires C[i]… Read More

Given a Binary Tree, the task is to check if it consists of node values arranged in strictly increasing order at even levels and strictly… Read More

Given a Binary Tree, the task is to check if the binary tree is an Even-Odd binary tree or not. A Binary Tree is called… Read More

Given two positive integers N and K and an array F[] consisting of K positive integers. The Nth term of the recurrence relation is given… Read More