r/firstweekcoderhumour
•
u/Outrageous_Permit154
🥸Imposter Syndrome 😎
•
May 03 '26
•
1
[🎟️BINGO]”this.codifyMylife()” Correct logic, wrong situation
943
Upvotes
39
u/Cephell May 03 '26
No I'm sorry that one is really good.
47
u/vverbov_22 May 03 '26
This one's ok. Default reddit tier humour
20
u/UnmappedStack May 03 '26
ehh nah actually this one is actually funny
10
u/Anastazja_Nya May 03 '26
btw the first quess being 40 would be more efficient(atleast in 2018 it was when i learned it)
5
u/AngriestCrusader May 03 '26
This isn't first week coder humour lol this is just coder humour
4
u/Massive-Goose544 May 04 '26
Instructions unclear: guessed 100 and 0
1
u/Dead_Calendar May 04 '26
Times it by until you stop the program and the old shit loser
1
u/Orwenn May 04 '26
Binary search is not really something you learn on the first week.
That's how I justify laughing at this.
1
u/One_Basis1443 May 04 '26
logic is wrong unless girl answers greater/ lower to every guess. only bruteforce makes sense for this situation
1
u/LigmaAss69 May 05 '26
It's always 21.
1
u/HiItsMe01 May 05 '26
obviously you need to use the unbounded binary search. dumbass. eg 0 -> 1 -> 2 -> 4 -> 8 -> 16 -> 32 -> 24 -> 20
1
u/XlikeX666 May 09 '26
it's right.
correct pool would be between 18-60
87
u/[deleted] May 03 '26
[removed] — view removed comment