All Hard Articles
Given an undirected graph, task is to find the minimum number of weakly connected nodes after converting this graph into directed one.  Weakly Connected Nodes… Read More
To carry traffic of a VLAN, it must be first configured on the switch. Suppose, if the user wants to send a frame from source… Read More
Consider the following pseudo code while (m < n) if (x > y ) and (a < b) then a=a+1 y=y-1 end if m=m+1 end… Read More
A Levelwise OR/XOR alternating segment tree is a segment tree, such that at every level the operations OR and XOR alternate. In other words at… Read More
What is Morris traversal?Morris (InOrder) Traversal is a tree traversal algorithm that does not use recursion or stacks. This traversal creates links as descendants and… Read More
Given an array a[] of size N, and Q queries of two types 1 and 2. For the given query of: Type 1: given l… Read More
Given an integer N which shows the size of the string and in the next line given a string which contains a string of character… Read More
Given i= 0, j = 1, k = – 1 x = 0.5, y = 0.0 What is the output of given ‘C’ expression ?… Read More
Prerequisites:  Disjoint Set Data Structure Set Unordered_Map Disjoint Set data structure is used to keep track of a set of elements partitioned into a number… Read More
Given two very large numbers in form of strings. Your task is to apply different arithmetic operations on these strings.  Prerequisite : Doubly Linked List.… Read More
React allows us to conditionally render components which means that the developer can decide which component to render on the screen on on the basis… Read More
Given an array of N(always a power of 2) elements and Q queries.Every query consists of two elements, an index, and a value… We need… Read More
The running instance of program is process, and each process needs space in RAM and CPU time to be executed, each process has its priority… Read More
Given a bracket sequence or in other words a string S of length n, consisting of characters ‘(‘ and ‘)’. Find the length of the… Read More
Given a constant array of n elements which contains elements from 1 to n-1, with any of these numbers appearing any number of times. Find… Read More
Given an array of N numbers, the task is to answer Q queries of the following type: query(start, end) = Number of times a number… Read More
If one uses straight two-way merge sort algorithm to sort the following elements in ascending order: 20, 47, 15, 8, 9, 4, 40, 30, 12,… Read More
Given an undirected colored graph(edges are colored), with a source vertex ‘s’ and a destination vertex ‘d’, print number of paths which from given ‘s’… Read More
Given three arrays A, B, and C, the task is to find sum of values of all special triplets. A special triplet is defined as… Read More
The number of 1’s in the binary representation of (3*4096 + 15*256 + 5*16 + 3) are: (A) 8 (B) 9 (C) 10 (D) 12… Read More