ByteDance / TikTokCodingMembers
Equalize Root-to-Leaf Path Sums in an N-ary Tree
Members only
A USDS phone-screen main problem: an n-ary tree where minimal value adjustments must satisfy a global balance condition across the whole tree. The trap is where you place the adjustments — the obvious placement is not always the allowed one — and the round expects you to write and run your own tests.
SWE
tree
dfs
greedy
medium
Frequency
Single report
Last asked
2026-07-14
Stage
phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
