← All problemsSign in

Varad Tries Trees

Varad hates trees,especially BST(Binary Search Trees). But his friends, Abizer and Harshit need him to understand the concept for ICPC. So they decided to give him a simple question on BST to boost his confidence. Abizer gave him a BST with N nodes, and the data (value) in each node. Harshit then gave him a function on the BST as follows. Node is an object that contains a left link pointing to t

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start