U
usgog
Given a binary search tree, how to find two numbers that can add up to
a given number K?
a given number K?
Given a binary search tree, how to find two numbers that can add up to
a given number K?
Its quite simple, start at both ends and work your way toward K/2, orGiven a binary search tree, how to find two numbers that can add up to
a given number K?
Daniel Pitts said:Its quite simple, start at both ends and work your way toward K/2, or
start at K/2, and work your way out.
Given a binary search tree, how to find two numbers that can add up to
a given number K?
Given a binary search tree, how to find two numbers that can add up to
a given number K?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.