Hello, can anyone clarifies this? I need to find consecutive segments that are odd or even. For example
2 6 5 = 2 and 6 = 2 consecutive even integers | 1 odd
4 6 8 1 3 = 4, 6, and 8 = 3 consecutive even integers | 1 and 3 consecutive odd integers 2
1 2 4 5 = 2 and 4 = 2 consecutive even integers | 1 odd
1 3 5 7 2 1 4 3 = 4 consecutive odd integers | 1 even