Two SigmaCoding·120 minMembers
SWE / QSE OA — Sewer Tree Partition
Members only
Given a rooted tree encoded by parent pointers and per-node input values, cut one edge / node partition so the absolute difference between the two resulting component sums is minimized.
SWE
tree
dfs
prefix-sum
medium
Frequency
Medium
Last asked
2026-07-23
Stage
oa
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
