Available question text
Given nums, k, and numOperations, you may pick up to numOperations distinct indices and add an integer in [-k, k] to each; find the maximum number of elements that can be made equal after these bounded modifications. The challenge is to group elements that can be shifted to a common value under per-element ±k limits and a hard cap on how many elements you can change (n up to 1e5).
Related questions
Continue with questions that share topics or the same question type.
- Maximum Frequency of an Element After Performing Operations II
Coding
- Final Value of Variable After Performing Operations
Coding
- Largest Element in an Array after Merge Operations
Coding
- Maximum Bitwise AND After Increment Operations
Coding · Array · Bit Manipulation · Greedy
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 3346. Maximum Frequency of an Element After Performing Operations I
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source