Showing 3 of 4 questions
You are given several rooted trees and a target node. Connect the trees in a way that maximizes the number of target nodes that are descendants of the root of the combined tree.
#1. Maximize the Number of Target Nodes After Connecting Trees I
You're given several trees and a target number of nodes. Connect the trees to maximize the number of target nodes reachable from a special 'root' node you can choose.
#2. Maximize the Number of Target Nodes After Connecting Trees II
Find the number of contiguous subarrays within a given array whose product is strictly less than a target value k. The goal is to efficiently count these subarrays by considering the product of their elements.
#3. Subarray Product Less Than K
Page 1 of 1 · 4 total