I have an array with 0's repeating multiple times but I want to find the longest set of 0s. For example:
myArray= [[1,0],[2,0],[3,0][4,0][5,1][6,0][7,0][8,0][9,0][10,0][11,0][12,0][13,1][14,2][15,0][16,0][17,0][18,0][19,1][20,0]]
So the Y coordinate has zeros repeating continuously a few times but I need to find the longest run. In this case the longest run is 7 repeated zeros from X coordinate 6 to X coordinate 12. I'd like the program to tell me where the the longest run of zeros is (in this case from X=6 to X=12).
Thanks!