Better HN
topnewbestaskshowjobs
Log inSign up

tomachello

6 karma · joined Jul 30, 2022 (4y ago) · 4 submissions

Submissions

1.

Ask HN: What's the coolest, non-useful project you've built

3 points · by tomachello · 3y ago · 2 comments

comment 4y ago · link · parent

They just need one prisoner to guess correctly - then they all win. Regarding the base case scenario - if each prisoner guesses randomly, each has a 1/100 chance of guessing correctly, and hence they have an expected number of exactly one correct guess. So no deterministic approach can give 2 correct guesses, since no prisoner actually has any real information about their number.

comment 4y ago · link · parent

No, only one. Think about it this way - if the warden randomly generates their numbers, each prisoner has a 1/100 chance of guessing it right. So best case scenario is exactly one gets it right, which is actually possible.

4.

Ask HN: What's your favorite math/logic puzzle?

5 points · by tomachello · 4y ago · 7 comments