Last active
April 3, 2023 03:48
-
-
Save quinnlas/8074e88a73967ea8e16f5b2f11879031 to your computer and use it in GitHub Desktop.
birthday problem calculator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let birthday = n => {let r=1;for(let i=1;i<n;i++){r*=(366-i)/366}return 1-r} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Explanation: