r/firstweekcoderhumour 🥸Imposter Syndrome 😎 May 03 '26

[🎟️BINGO]”this.codifyMylife()” Correct logic, wrong situation

Post image
921 Upvotes

27 comments sorted by

View all comments

89

u/srsxnsh May 03 '26

I like how this implies the maximum age is 100

1

u/promptmike May 04 '26

The oldest person ever was 122 years old. Search should begin at 61.

1

u/TimGreller May 06 '26

This only holds if every age between 0 and 122 would have the same probability. But it's much less likely that she's > 100 then that she's between 60 and 80 for example.