Search
⌘K

Leetcode 653. Two Sum IV - Input is a BST

Given the root of a binary search tree and an integer k, determine whether there exist two distinct nodes whose values sum to k, leveraging the BST property for an efficient pair search.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.