public int array11(int[] nums, int index) {
int i=0;
if (index==nums.length) return 0;
if(nums[index]==11) i++;
return i+array11(nums, ++index);
}
int i=0;
if (index==nums.length) return 0;
if(nums[index]==11) i++;
return i+array11(nums, ++index);
}
Comments
Post a Comment