Skip to content

Commit

Permalink
Merge pull request #2 from Vagesh19/patch-2
Browse files Browse the repository at this point in the history
Create quant.md
  • Loading branch information
33arsenic75 authored May 27, 2024
2 parents 228e12a + 8ee7e6e commit d90b9f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions problem-of-the-day/day01/quant.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Lucky Candy


How do you place 50 good candies and 50 rotten candies in two boxes such that if you choose a box at random and take out a candy at random, it better be good!
We need to maximize the probability of getting a good candy when selecting a random box and a random candy from it.



Hint:Placing all bad in 1 box and all good in another will give the probability of 0.5, which is not the maximum.

0 comments on commit d90b9f6

Please sign in to comment.