<p>Given the <code>root</code> of a binary search tree and an integer <code>k</code>, return <code>true</code> <em>if there exist two elements in the BST such that their sum is equal to</em> <code>k</code>, <em>or</em> <code>false</code> <em>otherwise</em>.</p>
<ul>
<li>The number of nodes in the tree is in the range <code>[1, 10^4]</code>.</li>
<li><code>-10^4 <= Node.val <= 10^4</code></li>
<li><code>root</code> is guaranteed to be a <strong>valid</strong> binary search tree.</li>
<li><code>-10^5 <= k <= 10^5</code></li>
</ul>