Showing 3 of 3 questions
Given an array of integers, find the optimal way to divide the elements into partitions to maximize a specific balancing factor. You will need to determine the best split points that yield the highest possible score under the given rules.
#1. Maximum Partition Factor
Given a tree with weighted edges, determine the maximum possible sum of edge weights you can keep after removing some edges, with the restriction that each node can only be the endpoint of a limited number of remaining connections.
#2. Maximize Sum of Weights after Edge Removals
Given a tree with a set of nodes, count the number of valid paths that satisfy specific conditions. You need to determine the total number of paths based on the given rules.
#3. Count Valid Paths in a Tree
Page 1 of 1 · 3 total