• fiah@discuss.tchncs.de
    link
    fedilink
    arrow-up
    3
    ·
    7 months ago

    If you are compelled to make a recursive algorithm iterative, consider using an explicit stack.

    yep, did that once to solve a specific problem, worked fine and if I recall correctly I could do it without making a total mess of my code