← Amazon questions

Delete binary tree nodes with path sum less than threshold

Filed under Amazon

Given a binary tree and a threshold minimum sum, prune all nodes that do not belong to any root-to-leaf path whose overall sum is greater than or equal to the threshold.

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.