There is a disk on a turn table. Half of it is black, and the other half is white. It is rotating in constant speed, but it's rotating fast so that you can't see whether it's going clockwise or counterclockwise. You also have a set of stationary sensors you can install anywhere which can tell whether the color of a spot has changed from black to white, or vice versa. What is the minimum number of sensors needed to find out which way the disk is rotating? What is the best, average, worst time to figure out the direction? If you use more sensors, can you improve the best, average, worst time? How can you accomplish that? If you are given only one sensor, how can you find out the direction, assuming you can change one constraint of the problem?
Software Development Engineer Interview Questions
32,851 software development engineer interview questions shared by candidates
Manipualte a string to place even char in leftt n odd in the right
Write a function that takes a linked list and removes every other element in it. Discuss test cases.
Describe a bug which are proud of. Why are you proud of this bug?
What is the difference between a process and a thread?
Can you find a better solution?
2nd round: test wireless mouse, given two string remove the occurances of characters in one string from another
How would you test the function above?
You have two results from a database query. Check if they return the same thing.
Write the strstr function.
Viewing 1921 - 1930 interview questions