Subtree sum queries on general tree
Filed under Sprinklr
The question
Given a general tree rooted at r with node values, answer q queries to either update a node value or print the sum of a subtree including the node value.
No write-up yet. Related questions below have one.
Related Sprinklr questions
Collected from public candidate posts and coding forums. Updated Nov 2026.