Showing 3 of 7 questions
Calculate the tilt of each node in a binary tree, where the tilt is the absolute difference between the sum of left subtree node values and the sum of right subtree node values. Return the total tilt of the entire tree.
#1. Binary Tree Tilt
You are given a list of match results. Determine which players have lost zero games and which players have lost only one game.
#2. Find Players With Zero or One Losses
Given an array of numbers, find the minimum cost to split it into one or more subarrays. The cost of a split is a fixed value plus the sum of lengths of all subarrays that are not "important".
#3. Minimum Cost to Split an Array
Page 1 of 1 · 7 total