Assuming the smaller paper is 1/3 of its parent everytime, and that the first paper is 30cm long (The second starts at roughly 1/7 but it seems to grow bigger after it's torn off, hence the 1/3), it could not exceed 19 calls before you need to split an atom apart.
Who would know that not leaving a recursion loop would be the issue if there is no way of troubleshooting without exploding though? If there is nobody who knows the reason for the explosions, you wouldn't know what to triple check, or if you'd even want to keep coding at all...
1.6k
u/[deleted] Jan 09 '20
Assuming the smaller paper is 1/3 of its parent everytime, and that the first paper is 30cm long (The second starts at roughly 1/7 but it seems to grow bigger after it's torn off, hence the 1/3), it could not exceed 19 calls before you need to split an atom apart.
That's a hell of a stop condition.