by pierrefar · 17y ago · 0 comments
http://en.wikipedia.org/wiki/Birthday_paradox
http://mathforum.org/dr.math/faq/faq.birthdayprob.html
Don't tell that to astrologers, otherwise they might make Mars align with Jupiter and that will crash your code with an unknown exception.
So it's about 1%, assuming uniform distribution of birthdays. Since they're not quite uniformly distributed, the actual odds of 60 people with no common birthdays is a little lower than that.
However, given the thousands of people reading HN who experienced such a classroom exercise, the odds are very good that someone like you will pipe up ;-)
I guess you were expecting an algorithm faster than O(n)? That was the best we could do, given n processors with O(1) space each :-D