Java Solution | Memory Usage is less than 73.35% of online submissions |
class Solution {\n    public int smallestEqual(int[] nums) {\n        int smallIndex = -1;\n        for (int i=nums.length-1; i>=0; i--){\n            int help 
class Solution {\n    public int smallestEqual(int[] nums) {\n        int smallIndex = -1;\n        for (int i=nums.length-1; i>=0; i--){\n            int help = i % 10;\n            if (help == nums[i]){\n                smallIndex = i;\n            }\n        }\n        return smallIndex;\n    }\n}
['Array', 'Java']