The item() method is used to return the node at the specified index. The nodes are sorted as they appear in the source code. The… Read More »

Python Global Interpreter Lock (GIL) is a type of process lock which is used by python whenever it deals with processes. Generally, Python only uses… Read More »

Given a string str, the task is to print all the sub-sequences of str. A subsequence is a sequence that can be derived from another… Read More »

Given an array arr[] of integers, the task is to count the number of divisors of product of all the elements from given array. Examples:… Read More »

Question 1: Ram and Shyam undertake a piece of work for Rs 300. Ram can do it in 20 days and Shaym can do it… Read More »

Multitasking is the simultaneous execution of multiple tasks or processes over a certain time interval. Windows operating system is an example of multitasking because it… Read More »

Given two numbers N and K. The task is to print K numbers which are powers of 2 and their sum is N. Print -1… Read More »

Given a range represented by two positive integers l and r and two integers d and m. Find the count of numbers lying in the… Read More »

Interview was same for all the IITs. Rounds may vary from 7 to 12 rounds based on the position you apply for Round 1: HackerRank… Read More »

Round 1: Hacker Rank Round – 75 minutes It was 2 hr coding round. Both the questions were on matrix. Question 1: M x N… Read More »

Given an integer n, the task is to find the sum: LCM(1, n) + LCM(2, n) + LCM(3, n) + … + LCM(n, n) where… Read More »

The problem is to print all the possible paths from top left to bottom right of an mXn matrix with the constraints that from each… Read More »

Given a string str, the task is to encrypt and reverse the string. The string is encrypted by adding every character of the string with… Read More »

Given an array arr[] of non-negative integers where 2 ≤ arr[i] ≤ 106. The task is to find the sum of all those elements from… Read More »

Given an array arr[] of strings of same length, the task is to count the number of columns to be deleted so that all the… Read More »

First Round A doubly linked list having exactly one of the node pointing to a random node in list, correct the doubly linked list. Build… Read More »

Dictionaries in Python is same as Associative arrays or Maps in other languages. Unlike lists, dictionaries stores data in key-value pair. Let’s see how to… Read More »

Given and . The task is to find the number of binary strings of length n out of 2n such that they satisfy f(bit string)… Read More »

Prerequisite – Buddy Allocation | Set 1 Question: Write a program to implement the buddy system of memory allocation and deallocation in Operating Systems. Explanation… Read More »

Unordered Map does not contains a hash function for a pair, So if we want to hash a pair then we have to explicitly provide… Read More »