values. Determine whether it contains three **adjacent** elements that are all odd.
Return true if such a triple exists and false otherwise.values=[4, 9, 15, 2, 7, 11, 21, 8] → True
7, 11 and 21 stand next to each other and are all odd.
values=[3, 5, 6, 1, 9] → False
Odd numbers come in pairs (3, 5 and 1, 9), but 6 breaks them up, so there is no run of three.
values.length ≤ 1000values[i] ≤ 1000values=[4, 9, 15, 2, 7, 11, 21, 8]
True
Run checks the first 3 tests in your browser. Submit checks all 123 tests on the server, hidden ones included.