In front of you are three light switches. Only one does anything, and it turns on the light downstairs. From here you can't see the light, and it makes no sound. You must determine which switch operates the light, BUT you can only go check it once. How do you figure out which switch is for the light?
Developer Interview Questions
639,397 developer interview questions shared by candidates
How many bottles of shampoo are produced in the world a year?
What happens when you have much subscribers to an event and an exception would raise in one of them?
implement the dynamic polymorphism
The final round of interview was challenging in terms of how you pick scenarios from your career.
Given an array of ints = [6, 4, 0, 5, 0, 0, 0, 1, 0] move all non zero numbers to the left and zeros to the right. How can you now improve your answer to O(n)?
Write an algorithm to determine whether a given number is of the form (2^n)+1, where n is an integer.
What is polymorphism?
An array of 99 elements contains integers from 1 to 100 with one missing element. Find the missing element.
Given the list of points of the skyline of a city in order (from East to West) Find the maximal rectangle contained in this skyline. I was asked to write the code. I managed to find the algorithm but was not sufficient.
Viewing 21 - 30 interview questions