What is the maximum number of edges in an acyclic undirected graph with n vertices? (A) n-1 (B) n (C) n + 1 (D) 2n-1 Answer:… Read More

All Medium Articles

In a class of 200 students, 125 students have taken Programming Language course, 85 students have taken Data Structures course, 65 students have taken Computer… Read More

Given a set of points, connect the dots without crossing. Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with… Read More

Given a positive integer n, find number of ways to divide n in four parts or represent n as sum of four positive integers. Here… Read More

Given an array “arr[0..n-1]” of integers, calculate sum of “arr[i] & arr[j]” for all the pairs in the given where i < j. Here &… Read More

Given a number n, print all primes smaller than n. For example, if the given number is 10, output 2, 3, 5, 7. Recommended: Please… Read More

Given a range [low, high], print all primes in this range? For example, if the given range is [10, 20], then output is 11, 13,… Read More

The project is based upon the web based UML designing. The main reason for selecting this topic was that now a day there is boom… Read More

Project Idea | (Optimization of Object-Based Image Analysis with Super-Pixel for Land Cover Mapping)

ABSTRACT: A prerequisite for object-based image analysis is the generation of adequate segments. However, the parameters for the image segmentation algorithms are often manually defined.… Read More

Do you know that less than 10% of candidates passed their on-site interviews as reported in Silicon Valley? Don’t forget that those who failed have… Read More

Round 1: a) Twitter design considering following functionalities: – Post tweet – Get the top tweets from the followers b) Parking Lot design Round 2:… Read More

Round 1 (Coding round): 1) Range [L, R] is given. Need to find what is the maximum repeating digit in prime numbers between L and… Read More

Given a number n, check if it is prime or not. We have introduced and discussed the School method for primality testing in Set 1.Primality… Read More

Given a 2D grid of characters and a word, find all occurrences of the given word in the grid. A word can be matched in… Read More

A Derangement is a permutation of n elements, such that no element appears in its original position. For example, a derangement of {0, 1, 2,… Read More

In year 2001 on October 2, 2001, the date in MMDDYYYY format was a palindrome (same forwards as backwards), 10/02/2001 -> “10022001” When was the… Read More

First round was technical aptitude. Around 120 students sat for it. 15 MCQs were asked- Everyone had different sets. All sorts of questions were asked,… Read More

Given a “m x n” matrix, count number of paths to reach bottom right from top left with maximum k turns allowed. What is a… Read More

Recently Microsoft visited our campus for IDC internship program and following is my interview experience. Online MCQ Round: It consist of 15 MCQ Questions on… Read More

Euler’s Totient function Φ(n) for an input n is the count of numbers in {1, 2, 3, …, n} that are relatively prime to n,… Read More