Search
⌘K
Get Premium
Leetcode 2283. Check if Number Has Equal Digit Count and Digit Value
Given a numeric string num, check whether for every index i the number of occurrences of digit i in the string equals the integer value of num[i]; return true if all indices match, otherwise false.
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.