2283.Determine whether the number of a number is equal to the value of the digital position。
1 | class Solution: |
I read this question for a while,Meaningindex
Read,index
Appearnum[index]
Second-rate,1210that is”0Appear1Second-rate,”1Appear2Second-rate,”2Appear1Second-rate,”3Appear0Second-rate。ThennumJust count the things in。
Because I was doing the practice of hash table two days ago,So at a glance at this question,Use directlyCounterFunction counts,Compare,Finish