Python Beginner Friendly Explanation Beats - 91%
Approach\nSimple Compare the count of current index with value at corrent index\n\n Describe your approach to solving the problem. \n\n# Complexity\n- Time comp
# Approach\nSimple Compare the count of current index with value at corrent index\n\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:O(1)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:O(n)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution:\n    def digitCount(self, num: str) -> bool:\n        for i in range(len(num)):\n            if num.count(str(i)) != int(num[i]):\n                return False\n        return True        \n```
['Math', 'Python3']