##
Print all the paths from root, with a specified sum in Binary tree
January 21, 2017

Given a Binary tree and a sum S, print all the paths, starting from root, that sums upto the given sum. Note that this problem is different from root to leaf paths. Here path doesn’t need to end on a leaf node. Examples: Input : Input : sum = 8, Root of tree 1 /… Read More »