---
title: "#two-sum-iv articles | Hashnode"
description: "Explore 1 articles tagged #two-sum-iv on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/two-sum-iv"
---

Tag

# #two-sum-iv

1 posts · 0 followers

[Chetan Datta](https://hashnode.com/@chetan77) · [Jul 27, 2025](https://hashnode.com/posts/two-sum-iv-input-is-a-bst/6885c168e1dcf9bf52441c4f)

### [Two Sum IV - Input is a BST](https://chetan77.hashnode.dev/two-sum-iv-input-is-a-bst?utm_source=hashnode&utm_medium=feed)

Problem Given the root of a binary search tree and an integer k, return true if there exist two elements in the BST such that their sum is equal to k, or false otherwise. (link) Example 1: Input: root = \[5,3,6,2,4,null,7\], k = 9 Output: true Examp...

2 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/two-sum-iv-input-is-a-bst?utm_source=hashnode&utm_medium=feed)
