3.2. Recursion - 3.2.2 Non-Tail Recursion
CS - 3. Common Algorithms - 3.2. Recursion - 3.2.2 Non-Tail Recursion 💡Tail recursion is when a function can directly return the result of a recursive call - there are no outstanding operations, and there is no need for the call stack frame to be preserved. So it can be translated to a “goto with arguments”, and the stack usage will be constant. In “non-tail recursion”, there are outstanding ope..
2024.01.22