News for hackers. Stuff that matters.
Re:Programming Puzzles by ZephyrP on Thursday September 23, 2021 @02:49PM (#28633458)
> This is very untrue. While loop and a stack.

>> You can still simulate

> any function outside DSPACE(O(1)) can't

The space complexity of the algorithm is only incidentally related to the number of unique variables required to represent it's state.

You said it best:

> The fact that you have an implicit call stack doesn't change the space complexity

There are no comments on this comment yet.