All Medium Articles
Jack consumes 75% of his salary. Later his salary is increased by 20% and he increases his expenditures by 10%. Find the percentage increase in… 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
A speedboat runs 6 km upstream in a river and comes back to the starting point in 33 minutes. The stream of the river is… Read More
Max completes his journey at an average speed of 9 km/h. He covers the first 9 km at a speed of 6 km/h and he… Read More
What Boolean function does the circuit below realize ? (A) xz+x’z’ (B) xz’+x’z (C) x’y’+yz (D) xy+y’z’ Answer: (B) Explanation: There 0, 2, 5, 7… 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
A set of Boolean connectives is functionally complete if all Boolean functions can be synthesized using those. Which of the following sets of connectives is… 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
The line T in the following figure is permanently connected to the ground. Which of the following inputs (X1 X2 X3 X4) will detect the… 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 with a slope of -1 that cross through nodes. Print all diagonal elements in a binary tree that belong 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
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
Suppose that we have numbers between 1 and 100 in a binary search tree and want to search for the number 55. Which of the… 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
I was recently interviewed by Amazon, Bangalore for SDE position. It was an off campus drive in Delhi for TRMS team. Written Test : Q1)… Read More