Showing 3 questions
You are given an array of integers and a series of update queries. For each query, update a value in the array and then calculate the sum of all the even numbers.
#1. Sum of Even Numbers After Queries
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
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.
#3. Binary Tree Tilt