Every recursive call incurs overhead by allocating a new stack frame, saving/restoring CPU registers, and passing arguments/return values, consuming CPU cycles and memory.
Open the full topic