Clay123's blog

By Clay123, history, 3 years ago, In English

Given a tree in the form of an adjacency list rooted at node 1, How to print all paths from root to leaves.

  • Vote: I like it
  • -4
  • Vote: I do not like it

»
3 years ago, # |
Rev. 3   Vote: I like it +6 Vote: I do not like it

Facebook hacker cup problem??? :p :p

»
2 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Here is a simple idea: https://ideone.com/OfhRRa