Problem 563 · Easy

Binary Tree Tilt

Given the root of a binary tree, return the sum of every tree node's tilt, where tilt is the absolute difference between left and right subtree sums.

Open the interactive visualisation