You are viewing a single comment's thread. Return to all comments →
A stack seems overdoing it in terms of space complexity, it may be less elegant, but more practical to print in place.
Seems like cookies are disabled on this browser, please enable them to open this website
Tree : Top View
You are viewing a single comment's thread. Return to all comments →
A stack seems overdoing it in terms of space complexity, it may be less elegant, but more practical to print in place.