Skip to content

Files

Latest commit

945ee77 · Jul 15, 2019

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 15, 2019
Jul 15, 2019

Given the root of a binary search tree, and a target K, return two nodes in the tree whose sum equals K.

For example, given the following tree and K of 20

    10
   /   \
 5      15
       /  \
     11    15

Return the nodes 5 and 15.