News for hackers. Stuff that matters.
Re:All the jobs I failed to get by mettamage on Saturday September 19, 2020 @09:45AM (#24527374)
Hip(n) {

If n == 0

  Return
Log(“std rec ex ” + n)

n -= 1

Hip(n)

}

On phone (so untested pseudo code), but this is my standard way of thinking about it. I think implementing bfs and dfs also helps to get it a bit more.

And I have needed to do recursion on web dev, because it’s the easiest way to deal with trees on your own.

There are no comments on this comment yet.