How many random people do you have to select before you find three people who share t

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lyzeth
    New Member
    • Mar 2013
    • 1

    How many random people do you have to select before you find three people who share t

    How many random people do you have to select before you find three people who share the same birthday?

    That is, all three people were born on the same day in the same month, but not necessarily in the same year.the month and day should appear but i don't know how to do it.. can you help me?
    Last edited by acoder; Mar 26 '13, 03:06 PM.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Your thread has been moved to the algorithms forum as it doesn't seem to have anything to do with Java.

    The answer depends on resolving the ambiguities in the question.

    For example, are you looking for the minimum number you need to select? Then the answer is 3. You could conceivably select 3 of the same birthdays in a row.

    If you are looking for the max, then you need to select 733. 366 days in a leap year. You will need to select every day for two years. The third year you can select any day.

    Comment

    Working...