---
title: "Discussion on \"LeetCode 653 Two Sum IV - Input is a BST - In Order Traversal (Easy, Java, O(n))\" | Hashnode"
description: "Discussion on \"LeetCode 653 Two Sum IV - Input is a BST - In Order Traversal (Easy, Java, O(n))\". LeetCode 653. Two Sum IV - Input is a BST\n\nApproach\nThe problem requires us to find if there exist any two nodes in a Binary Search Tree (BST) that sum up to a given target value k. \nThe solution uses an inorder traversal approach combined with a has..."
url: "https://hashnode.com/posts/leetcode-653-two-sum-iv-input-is-a-bst-in-order-traversal-easy-java-on/68705ba93f60a083c95ac737"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode 653 Two Sum IV - Input is a BST - In Order Traversal (Easy, Java, O(n))](https://huanganni.hashnode.dev/leetcode-653-two-sum-iv-input-is-a-bst-in-order-traversal-easy-java-on?utm_source=hashnode&utm_medium=feed)

LeetCode 653. Two Sum IV - Input is a BST Approach The problem requires us to find if there exist any two nodes in a Binary Search Tree (BST) that sum up to a given target value k. The solution uses an inorder traversal approach combined with a has...

Jul 11, 2025 · 3 min read · huanganni.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#inordertraversal](https://hashnode.com/tag/inordertraversal)
-   [#bst](https://hashnode.com/tag/bst)
-   [#treetraversals](https://hashnode.com/tag/treetraversals)
-   [#java](https://hashnode.com/tag/java)

## Written by

[Anni Huang](https://hashnode.com/@HuangAnni)

@HuangAnni · Singapore

  
[View profile](https://hashnode.com/@HuangAnni)

LLM Training Operation Specialist @ ByteDance | Ex-Master of IT in Business (AI track) at SMU

I’m Anni Huang, an AI researcher-in-training currently at ByteDance, specializing in LLM training operations with a coding focus. I bridge the gap between engineering execution and model performance, ensuring the quality, reliability, and timely delivery of large-scale training projects.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
