Available question text
Given an array and a target k, you may repeatedly pick a valid h (all elements > h must be identical) and set those elements to h; compute the minimum operations to make every element equal to k, or return -1 if impossible. The core challenge is that values only decrease, so feasibility requires no element < k, and the minimal number of operations corresponds to the number of distinct values strictly greater than k.
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 3375. Minimum Operations to Make Array Values Equal to K
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source