Frequency of the Most Frequent Element

Given an integer array nums and an integer k, you may perform at most k operations. In one operation, choose an array element and increment it by 1.

Return the maximum possible frequency of a...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: