#112-path-sum
Read more stories on Hashnode
Articles with this tag
To see the question, click here. Naive Approach The idea is to maintain two stacks nodeStack and sumStack . Until nodeStack is empty; if it's a leaf...