Skip to content
All Medium Articles
The minimum frame size required for a CSMA/CD based computer network running at 1 Gbps on a 200m cable with a link speed of 2… Read More
After selling 33 meters of a cloth, a shopkeeper makes a gain equal to the selling price of 11 meters of the cloth. What is… Read More
C program is given below: # include <stdio.h> int main () {         int i, j;         char a [2] [3] = {{'a', 'b', 'c'}, {'d', 'e',… Read More
The age of a father was 4 times his son’s age 8 years back. After 8 years, the father will be twice as old as… Read More
The price of sugar is decreased by 10%. As a consequence, monthly sales is increased by 30%. Find out the percentage increase in monthly revenue.… Read More
I recently had interviews with Amazon at Hyderabad for SDE 1. I had around 1 year and 9 months of experience. Telephonic Interview : It… Read More
What is the chromatic number of the following graph? (A) 2 (B) 3 (C) 4 (D) 5 Answer: (B) Explanation: The chromatic number of a… Read More
I recently attended an interview at Microsoft. Following was my experience: Round 1: This was a written round. Everyone was given the following two questions:… Read More
A hard disk system has the following parameters : Number of tracks = 500 Number of sectors/track = 100 Number of bytes /sector = 500… Read More
Consider the program below in a hypothetical language which allows global variable and a choice of call by reference or call by value methods of… Read More
When searching for the key value 60 in a binary search tree, nodes containing the key values 10, 20, 40, 50, 70 80, 90 are… Read More
The minimum positive integer p such that 3p modulo 17 = 1 is (A) 5 (B) 8 (C) 12 (D) 16 Answer: (D) Explanation: Either… Read More
Consider lines of slope -1 passing between nodes. Given a Binary Tree, print all diagonal elements in a binary tree belonging to the same line.… Read More
An array X of n distinct integers is interpreted as a complete binary tree. The index of the first element of the array is 0.… Read More
Note: This post contains codes that cannot be run using an online compiler. Please make sure that you have Python 2.7 and cv2 module installed… Read More
Given a Binary Tree (BT), convert it to a Doubly Linked List(DLL) In-Place. The left and right pointers in nodes are to be used as… Read More
The following is the explanation to the C++ code to blur an Image in C++ using the tool OpenCV. Things to know: (1) The code… Read More
Given a graph, a source vertex in the graph and a number k, find if there is a simple path (without any cycle) starting from… Read More