public boolean array6(int[] nums, int index) {
if(index==nums.length) return false;
if (nums[index]==6) return true;
return array6(nums,++index);
}
if(index==nums.length) return false;
if (nums[index]==6) return true;
return array6(nums,++index);
}
Comments
Post a Comment