Skip to content

1550-three-consecutive-odds

DevGod
DevGod
Vtuber
/**
* @param {number[]} arr
* @return {boolean}
*/
var threeConsecutiveOdds = function(arr) {
for(let I =0; I<arr.length-2; I++){
if(arr[I]%2 === 1 && arr[I+1]%2 === 1 && arr[I+2]%2 === 1){
return true;
}
}
return false;
};