Calculate Tilt

Preview

Given the root node of a binary tree, write a recursive function to return the sum of all node tilts in the tree.

Sign in to read the full chapter.

Checking access…