Search
⌘K
Get Premium
Leetcode 2190. Most Frequent Number Following Key In an Array
Count how often each number immediately follows occurrences of a given key in the array and return the number with the highest count. The answer is unique and can be determined in a single pass over the array.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.