Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wrote similar code to show that as long as you choose your starting number randomly you will have positive EV. Not sure how they kept using this interview question without realizing this.

https://x.com/sampullara/status/1810088483425558630



I think they were using it just fine because they don’t say or in any way imply that the choice is random.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: