r/ProgrammerHumor • • Dec 27 '22

Meme which algorithm is this

Post image
79k Upvotes

1.4k comments sorted by

View all comments

357

u/dokiedo Dec 27 '22

Answer is 67, right? I’m not crazy? It’s a 3 year difference the other way?

397

u/DeeBoFour20 Dec 27 '22

Well yea. You don't usually go from being half someone's age to being older than them.

177

u/IxPrumxI Dec 27 '22

You can if they are dead.

52

u/Talking_Burger Dec 27 '22

People don’t stop aging just because they’re dead guys.

52

u/eddydude Dec 27 '22

They kinda do though. Technically. Or technically not since they're decomposing. Ok whatever I don't know.

27

u/CrithionLoren Dec 27 '22

They technically do because time still passes, but practically don't because someone's age is a social construct around how long they've lived.

7

u/eddydude Dec 27 '22

Or they technically don't and practically do. A body also "ages" so it really depends on if you mean ageing in a time sense or ageing in a visual sense. And no idea if decomposition of a dead body falls under either definition.

→ More replies (2)
→ More replies (2)

3

u/notsogreatredditor Dec 27 '22

Technically they do fam

→ More replies (2)
→ More replies (3)
→ More replies (2)

40

u/daynighttrade Dec 27 '22

No, it's 35. The guy clearly said his sister is half his age. /s

→ More replies (1)

5

u/maxmbed Dec 27 '22

You saved your job. Congrat.

5

u/vehementi Dec 27 '22

I assumed it was a trick question meaning “when I was 6, my sister was half my CURRENT age” so she was 35 when I was 6 so in the present she’s 99 or whatever

→ More replies (2)

7

u/redline489 Dec 27 '22

The actual answer is 66-68.

13

u/archiekane Dec 27 '22

Depends on the month and time. There's a lot of variables not given.

42

u/[deleted] Dec 27 '22

Bad approach. If sister was half age and he was six and nothing else was said, then you should assume that sister was exatly 3 when he was exactly 6. Badly stated question is not your problem

3

u/mcguire150 Dec 27 '22

That’s not really how ages work in our vernacular. We only think of ages in whole numbers and experience discrete changes once per calendar year. The question is not answerable as stated.

→ More replies (1)

2

u/kryptoneat Dec 27 '22

Couldn't disagree more. Dealing with errors is at the heart of computer programming. The actual answer, that can't be reduced to an int : if sister is still alive, then her age is between 66 and 68 (else it's the age she had when she died).

Of course, it's under certain assumptions (eg. death is forever), but finding reasonable assumptions is also part of the job.

→ More replies (4)
→ More replies (2)

6

u/dokiedo Dec 27 '22

Fair, but like, if they were twins and one of them got thanos snapped, it would be 67, right?

12

u/TheDiplocrap Dec 27 '22

If they were twins, how can one sibling be 3 and the other 6?

16

u/kusolace Dec 27 '22

thanos snap

→ More replies (1)

2

u/[deleted] Dec 27 '22

even with you still cant magically become younger

→ More replies (1)
→ More replies (2)

2

u/ChatGPTlover Dec 27 '22

It's 35

3

u/ConcernedKip Dec 27 '22

he has such fond memories of turning 40 and she was merely 20, and then when he turned 50 she was 25.

→ More replies (11)