1. You have n doors in a row that are all initially closed. You make n passes by the doors starting with the first door every time. The first time through you visit every door and toggle the door (if the door is closed, you open it, if its open, you close it). the second time you only visit every 2nd door (door #2, #4, #6. third pass you toggle 3rd, 6th, 9th door. What state are the doors in after the last pass? which doors are open ?
MISSING VALUE Interview Questions
6,577,970 interview questions shared by candidates
You own land that may or may not have oil underneath. If it does have oil it is worth 100k (20% prob), if it doesn't it is worth 30k. What is the expected value of the land? How much would you sell a contract for this land with a strike of 40k?
What are the four pillars of OOP?
If you were an animal, which animal would you be and why
What do you feel that most difficult animal you would have problems working with?
What would you say is your greatest weakness?
Are you willing to be assigned anywhere in the Philippines?
"Do you have any reservations reporting to a woman."
Debugging + System design: We wrote a simple (single-threaded) web crawler. Given a starting URL, it visits every reachable page. For each page, it determines the URLs of every static asset (images, javascript, stylesheets) on that page. The crawler returns a list with an entry for each crawled page and a listing of URLs for the assets found in that page.
Find length of shortest linked list given an array of linked lists. Amongst others.
Viewing 4781 - 4790 interview questions