Python 1 line -  99% speed 95% memory usage
\n\nMake use of recursion to loop over nums array. Return -1 if i exceeds the last index of nums\n```\nclass Solution(object):\n    def smallestEqual(self, nums
![image](https://assets.leetcode.com/users/images/2f825987-9b44-4e1a-9f80-502bf041cc7f_1635991024.3918374.png)\n\nMake use of recursion to loop over ```nums``` array. Return ```-1``` if ```i``` exceeds the last index of ```nums```\n```\nclass Solution(object):\n    def smallestEqual(self, nums, i=0):\n        return -1 if i == len(nums) else ( i if i%10 == nums[i] else self.smallestEqual(nums, i+1) )
['Recursion', 'Python', 'Python3']