✅ Short & Easy | c++ | java | python
C++\n\nclass Solution {\npublic:\n    int smallestEqual(vector<int>& nums) {\n        for(int i=0;i<nums.size();i++){\n            if(i%10 == nums[i]) return i;
**C++**\n```\nclass Solution {\npublic:\n    int smallestEqual(vector<int>& nums) {\n        for(int i=0;i<nums.size();i++){\n            if(i%10 == nums[i]) return i;\n        }\n        return -1;\n    }\n};\n```\n**Java**\n```\nclass Solution {\n    public int smallestEqual(int[] nums) {\n        for(int i=0;i<nums.length;i++){\n            if(nums[i]==i%10) return i;\n        }\n        return -1;\n    }\n}\n```\n**Python**\n```\nclass Solution:\n\tdef smallestEqual(self, nums: List[int]) -> int:\n\t\tfor i, num in enumerate(nums):\n\t\t\tif i % 10 == num:\n\t\t\t\treturn i\n\t\treturn -1\n\n```\nFeel free to ask any question in the comment section.\n**I hope that you\'ve found the solution useful.**\nIn that case, **please do upvote and encourage me** to on my quest to document all leetcode problems\uD83D\uDE03\nHappy Coding :)\n
['C', 'Python', 'C++', 'Java']