← Samsung questions

Nodes with left subtree sum >= k

Filed under Samsung

Given the root of a binary tree and an integer k, find all nodes in the tree for which the sum of all node values in its left subtree is greater than or equal to k. Return the values or counts of such…

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 Samsung questions

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