forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice



The birthday problem, find the odds that if you have n people in a room, all have unique birthdays

chanceAllUnique(1) → 1
chanceAllUnique(2) → 0.9945205479452055
chanceAllUnique(3) → 0.9863464064552449

...Save, Compile, Run (ctrl-enter)

public double chanceAllUnique(int n) }

Editor font size %:
Shorter output

Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy