Microsoft visited our campus. Prior to that, about a month ago they had conducted an online coding test. The interview consisted of 3 f2f rounds.… Read More »
All Medium Articles
Given a positive integer n. Find the value of where function F(i) for number i be defined as sum of all divisors of ‘i‘. Input:… Read More »
Given an array A of n elements, sort the array according to the following relations : , if i is even. , if i is… Read More »
Given an array of n elements. Find maximum sum of pairwise multiplications. Sum can be larger so take mod with 10^9+7. If there are odd… Read More »
Given an array A of n integers. The task is to count the number of ways to split given array elements into two disjoint groups,… Read More »
There comes a time while using LINUX when there is a need to copy some information stored in a file to another computer. This can… Read More »
This is a C++ program to generate a graph for a given fixed degree sequence.This algorithm generates a undirected graph for the given degree sequence.It… Read More »
Using srand() and rand() function in C, a simple but interesting game can be made. This game is called “Guess Game” . Rules of the… Read More »
Given a number N and its radix base R, find whether its valid or not according to its radix base. Find valid/invalid number for any… Read More »
In number theory, a Balanced Prime is a prime number with equal-sized prime gaps above and below it, so that it is equal to the… Read More »
If you are new to LINUX operating system and having trouble dealing with the command-line utilities provided by LINUX then you really need to know… Read More »
Given an array of positive integers, find all the alphabets that we can make using elements of the array. Examples : Input : arr[] =… Read More »
Given an array of non-negative integers. We need to construct given array from an array of all zeros. We are allowed to do following operation.… Read More »
Round 1: 2 questions on mettle – online judge 1. longest palindrome of a given string. 2. There are n candies and K student. candies… Read More »
Given an odd number, we need to express it as the sum of at most three prime numbers. Examples: Input : 27 Output : 27… Read More »
Round 1:Written Test – 90 min It comprises of 15 questions mainly from the topic OOPs concept , Coding Question(Linked List, Binary tree , Array… Read More »
Given an array of N integers, You have to find the probability of choosing a random pair(i, j), i < j such that A[i] +… Read More »
There are several primality test available to check whether the number is prime or not like Fermat’s Theorem, Miller-Rabin Primality test and alot more. But… Read More »
Given a non-negative integer n. The problem is to find the smallest perfect power of 2 which is greater than n without using the arithmetic… Read More »
Given a binary string of 0s and 1s. The task is to find the length of substring which is having maximum difference of number of… Read More »

