Question
There is a remote city where everyone wants a boy, each family continues having babies until they finaly have a boy. What would be the pr ...
Search results for google
Answer
In 1994 Microsoft published a patent on implementing Virtual Function tables in OOP Programming Languages:
"A virtual function table for a c ...
Given n stairs, how many number of ways can you climb up if you can setp either 1 or 2 stairs at a time?
Posted by Job-Interview
Full question:
Given N step stair, how many number of ways can you climb if you use either 1 or 2 at a time?
Answer
It will be F(n+1) fibonacci numb ...
Preparing for Google interview
Posted by SmartAss
Here is the email from Google I recived with the advice on how to prepare to the interview.
Thank you for taking the time to chat today! The details ...
The basic idea of the Dependency Injection is to have a separate object, an assembler, that populates a field in the lister class with an appropriate ...
If someone has been trying to collect information about a lot of development companies as probable from blogs to a certain extent than from false list ...
Write a function which produces a random integer in the range 1 to 7 based on function which returns random integer in the range 1 to 5
Posted by Job-Interview
The task is given a function rand5() which produces a random integer in the range 1 to 5, write a function rand7() which produces a random integer in ...
Company where asked this question: Google, Microsoft
Company where asked this question: Google, Microsoft
Another icebreaker I had was:
You are given a cake. One of the cake corners is randomly broken. How will you cut the rest of the cake into the two ab ...