johanlindberg/Spotify-puzzles — pull request #1 by mlbright (2012-02-13 03:40:17+00:00)
Title: bug fixes to your spotify puzzle solution (ticket lottery)

hi, I submitted your solution to the ticket lottery problem with some bug fixes, and it passed. The bugs were:

- you forgot to account for the case where p > n: the number of people in the group of friends is larger than the number of winners drawn. (makes sense when winners can take more than 1 ticket)
- Your comb (binomial coefficient) function was buggy and slow, I just replaced it with the one from Wikipedia.