{"id":"bst-pruning-correctness","text":"`range_sum_bst` prunes the left subtree when `root.val < low` and the right subtree when `root.val > high`; this is correct only if the input is a valid BST — feeding a non-BST tree silently produces wrong results","truth_value":"IN","source":"entries/2026/06/06/range-sum-of-bst-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"bst-pruning-correctness","truth_value":"IN","reason":"premise"}]}}