C++ | Easy Solution | O(n) time complexity | Clean Code
Please Upvote if you found this useful.\n\n\nclass Solution {\npublic:\n    int smallestEqual(vector<int>& nums) \n    {\n        for(int i=0; i<nums.size(); i+
**Please Upvote if you found this useful.**\n\n```\nclass Solution {\npublic:\n    int smallestEqual(vector<int>& nums) \n    {\n        for(int i=0; i<nums.size(); i++)\n        {\n            if(i % 10== nums[i])\n            {\n                return i;\n            }\n        }\n        return -1;\n    }\n};\n```
['C', 'C++']