Month: November 2018

2 Eggs – 100 Floors – Interview Question

You are given two Eggs and you are in a building with 100 Floors. You have to find the minimum floor from which if an egg is dropped, it won’t break. You have to do this in such a manner that your worst case number of attempts is minimized. Let’s find out how to answer…
Read more


November 30, 2018 0

Degree of Array – Interview Question

Find the degree of an array where degree of an array is the maximum frequency of any element in the array. Also find the smallest possible sub-array with the same degree. To begin with, make sure you understood the question correctly. Write a sample array on the whiteboard and ask them if the degree you…
Read more


November 9, 2018 0