this post was submitted on 14 Jun 2024
133 points (88.9% liked)

Programmer Animemes

458 readers
12 users here now

Yes it exists! This is a community dedicated to programming memes combined with anime memes.

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Maalus@lemmy.world 2 points 3 months ago

To whoever goes by this comment, downvotes and thinks "yeah it is!" - you are wrong. It's an endless loop, where a condition to exit it is never met. Recursion is calling on the same function and it slowly getting you the answer. I.e. the task is - ask 15 relatives. To ask the next relative, you first need to ask the one before it. And then you need to ask an even further n+1 relative, till you reach the 15th. So then you meet the condition for the 14th, till you ask person 1 and then you can go for ice cream.