wish_me's blog

By wish_me, history, 7 years ago, In English

A binary tree and a number, say k are given. Print every path in the tree with sum of the nodes in the path as k. (A path can start from any node and end at any node, i.e. they need not be root node and leaf node; and negative numbers can also be there in the tree)

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