Search
⌘K

Leetcode 1394. Find Lucky Integer in an Array

Compute the frequency of each value in the array and return the largest integer whose frequency equals its value (a "lucky" integer); return -1 if no such integer exists.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.