Available question text
Given an array nums and up to k operations that can double distinct elements (each at most once), choose a contiguous subarray and up to k elements to double to maximize the score defined as (subarray length × GCD of its elements). With n ≤ 1500 and nums up to 1e9, the challenge is to efficiently explore subarray GCDs and the combinatorial impact of up to k single-element doublings.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3574. Maximize Subarray GCD Score
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source