← Amazon questions

Update marks in BST

Filed under Amazon

Given a Binary Search Tree (BST) where each node represents a student's marks, update the tree by subtracting 5 marks from every student who has an even rank. Rank is defined by the sorted order of…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.