Tap here to switch tabs
Problem
Submissions

Problem: Three Consecutive Odds

Three Consecutive Odds asks whether an integer array contains three odd numbers in a row, returning true if such a consecutive sequence exists and false otherwise.

Statement

Given an integer array arr, return true if there are 33 consecutive odd numbers in the array, and false otherwise.

Constraints:

  • 1≤1 \leq arr.length ≤1000\leq 1000

  • 1≤1 \leq arr[i] ≤1000\leq 1000

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Three Consecutive Odds

Three Consecutive Odds asks whether an integer array contains three odd numbers in a row, returning true if such a consecutive sequence exists and false otherwise.

Statement

Given an integer array arr, return true if there are 33 consecutive odd numbers in the array, and false otherwise.

Constraints:

  • 1≤1 \leq arr.length ≤1000\leq 1000

  • 1≤1 \leq arr[i] ≤1000\leq 1000