Array
1550. Three Consecutive Odds
Determine whether the array contains three consecutive odd numbers. Keep a run counter that increments on an odd and resets on an even; success when it hits 3.
Loading…
Determine whether the array contains three consecutive odd numbers. Keep a run counter that increments on an odd and resets on an even; success when it hits 3.
Loading…