2
Let's assume we have an array that contains the following elements:
-1, 0, 0, 1, 0, -1, 0, -1, 1
I would like to count the combinations of consecutive elements such that
-1,0 & 0,0 & 0,1 & 1,0 & 0,-1 & -1,0 & 0,-1 & -1&1
In this case:
The count of -1,0 = 2
The count of 0,1 = 1
The count o...