j
k
j a
j l
You store hres in a local variable (which you could avoid, BTW), so you're not really saving anything. More importantly, if stack usage is a real concern, we should implement the algorithm without using recursion instead.
Back to the thread
Back to the list