this post was submitted on 14 Jun 2024
136 points (89.1% liked)
Programmer Animemes
510 readers
30 users here now
Yes it exists! This is a community dedicated to programming memes combined with anime memes.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.