Tap here to switch tabs
Problem
Submissions

Problem: Three Consecutive Odds

med
30 min
Try to solve the Three Consecutive Odds problem.

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

med
30 min
Try to solve the Three Consecutive Odds problem.

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