Path Sum

Using Recursion

  1. Recursively add the left and right child until you reach the leaf.

  2. Once you reach the leaf, check if you have attained the sum

    1. If Yes then true

    2. else false

More Elegant Solution

Last updated