Given a Complete Binary Tree as an array, the task is to print all of its levels in sorted order. Examples: Input: arr[] = {7,… Read More »

Given an array arr[] of n integers and an integer K. In one operation every element of the array is replaced by the difference of… Read More »

Given an array arr[], the task is to find whether the array is mirror inverse. Inverse of an array means if the array elements are… Read More »

Given an Array arr[] and two integers K and M. The problem is to find the K-th Minimum element after concatenating the array to itself… Read More »

Given a string of words separated by spaces. The task is to find the first maximum length even word from the string. Eg: “You are… Read More »

Given a string S and a number K. The task is to find the minimum length substring having exactly K distinct characters. Note: The string… Read More »

Given a linked list containing N nodes and a positive integer K where K should be less than or equal to N. The task is… Read More »

Given a binary tree and two nodes, the task is to check if the nodes are siblings of each other or not. Two nodes are… Read More »

Given an integer N, the task is to find the count of numbers from 1 to N which are divisible by all the numbers from… Read More »

Given an array arr[] of N positive integers and an integer K. It is given that you start at position 0 and you can move… Read More »

Given an array of positive integers of size greater than 2. The task is to find the minimum value of sum of consecutive difference modulus… Read More »

Given a string str consisting of upper case alphabets, numeric digits and arithmetic operators, the task is to group them into continuous sub-strings of same… Read More »

Tuple is a collection of elements. Tuples are heterogeneous data structures, i.e., is they can store elements of different data types. A tuple is immutable,… Read More »

Given two strings s1 and s2. The task is to take one character from first string and one character from second string and check if… Read More »

Prerequisite – Token Ring frame format, Efficiency Of Token Ring Token Ring protocol is a communication protocol used in Local Area Network (LAN). In a… Read More »

Prerequisite – Classification of top down parsers, FIRST Set, FOLLOW Set A top-down parser builds the parse tree from the top down, starting with the… Read More »

Given an array arr[] of N integer elements and an integer K. The task is to count all distinct arr[i] such that arr[i] appears at… Read More »

Given an n-ary tree rooted at vertex 1. The tree has n vertices and n-1 edges. Each node has a value associated with it and… Read More »

Given an array arr[] of integers and an array q[] of queries. For the ith query, index = q[i][0] and value = q[i][1]. The task… Read More »

Given an array arr[] of N positive integers, the task is to find the minimum LCM and GCD between elements of all possible sub-array. Examples:… Read More »