• Feed
  • Discussions
BST Iterator

BST Iterator

#bst-iterator
0 followers·1 articles

BST Iterator

#bst-iterator·0 followers·1 articles
BST Iterator
Chetan Datta
Chetan Datta
chetan77.hashnode.dev·Jul 27, 2025
Jul 27, 2025

Two Sum IV - Input is a BST

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...

Discuss·1 read
Leetcode
Two Sum IV

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

Beyond Speculation: The Real-World Utility of AEON

Prochino·27 reads

From Community to Governance: AEON’s 2030 Roadmap

Prochino·13 reads

STON.fi: The Next-Gen DEX Powering TON Blockchain DeFi

Tommy williams·13 reads

Top commenters this week

Writing Challenges

Ariska Hidayat
Ariska Hidayat
Buy Old Gmail Accounts
Buy Old Gmail Accounts
Sonu Goswami
Sonu Goswami
Arjun Pandit
Arjun Pandit
Jenny Williams
Jenny Williams
#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior