AceTheInterview
Submit Q&A | Tell a friend
Search site for 

Top 100 Interview Questions & Answers in a convenient and easy to read book!

“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”

– Ravi, California

Read more comments...

Interview Questions And Answers RSS Feed

Answers »

  1. Submitted By: no-it-all — September 16, 2007
    +1 votes
      + -

    Unless it’s a birthday party where everyone was born on the same date, no.

  2. Submitted By: Marco Almondine — December 11, 2007
    +1 votes
      + -

    Assuming the general population has birthdays evenly distributed across the 365 days of the year, and the party population is sampled randomly from the general population…

    Sounds vaguely like the statistics class example where the teacher asks how many students he will have to sample before finding any two with the same birthday. As I recall the answer comes out to an average of something like 15-20. But this is because it doesn’t matter which day - any two the same is fine.

    In the question, the people must have the same *specific* birthday, lowering the odds very much (don’t remember enough statistics to calculate it). The odds are way against you on finding a match - and on top of that, you’re being paid half as much for each match. If you were being paid like $200 for each match you might have statistics on your side but in this situation it is obvious that everything is going against you. Pass on the bet.

  3. Submitted By: slj — January 19, 2008
    -6 votes
      + -

    Yes, if,

    1. Let me find out first.
    2. He cannot credit for anyone who I already find out, whether having or not having the same birthday of me.

  4. Submitted By: pia — January 23, 2008
    +5 votes
      + -

    my expected income:
    15{(1/365)*1+(364/365)*(-2)}
    which is negative!
    i dont expect a profit and so won take the chance!

  5. Submitted By: Archies — January 31, 2008
    -1 votes
      + -

    For my friend, with a probability of having no same B’Days, as the chances are more, gets $2 for every Bdays that doesnt match. For him, even I can be taken into consideration as its not mentioned anywhere that we two need to be excluded. This is the only case that he doesnt get his bet of $2. But in neither case will I be benefitted. Hence will not take the bet.

  6. Submitted By: Joe — April 5, 2008
    +3 votes
      + -

    No. No need to even use a calculator or a scratch pad to come out with the answer.

    The reason is that the probability of each person having the same birthday as mine is small compared to the complement event, say epsilon. Now,

    Espilon * 1 + (1-Epsilon)*(-2)

  7. Submitted By: chandramohan — June 18, 2008
    -6 votes
      + -

    if all of them have the same b’day he will get $9.but the
    friend will get $18, so its loss for him.

  8. Submitted By: Code Decoder — June 30, 2008
    +1 votes
      + -

    Here its not mentioned who is going to pay for a success or a failure if there is a 3rd person who will pay two both of us then I will accept the wager since in this case I will always be in profit however, my frnd has probability of winning more than me.

  9. Submitted By: Kiran — September 4, 2008
    -15 votes
      + -

    My expected Profit = 1*(1/365)+2*(1/365)^2+3*(1/365)^3+…+10*(1/365)^10 = 1 (approx)

    The above expression is AGP. Refer the formula for
    sum of n terms

    Friend’s expected profit = 2*(364/365) + 4*(364/365)^2 + .. + 20*(364/365)^10 = -18*365 (approx)

    My profit (+ve) > My friend profit (-ve)

    Hence I accept the bet.

  10. Submitted By: CodeMangler — September 7, 2008
    -7 votes
      + -

    http://en.wikipedia.org/wiki/Birthday_paradox

    So, “statistically”, I’m almost guaranteed that every 57th person I meet has the same birthday as me.. But that still leaves the other 56 people who don’t..

    hmm.. so, if I take the bet, my friend makes at least $112 more than me (or $56 more even if it’s an equal wager)

  11. Submitted By: GooGleGoo — September 23, 2008
    -1 votes
      + -

    The question does not say who asks the people. Thus, if I ask all of the party attendees, I may luckily find someone with the same birthday as mine. But my friend has no chance to find by himself.

  12. Leave an Answer/Comment

    To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
    Click to hear an audio file of the anti-spam word

Our Sponsors
Our Sponsors
Contact Us | FAQ | Sitemap | Terms of Use | Privacy Policy | Tell a Friend

Copyright © 1999-2006 Jeeve Technologies LLC. All rights reserved.