From: Luna Moon on
Given an array A,

for each column,

I want to find the length of longest consecutive stripe in that
column...

for example, a column is as follows:

1
1
1
0
0
1
-1
-1


Then the length of the longest stripe should be 3, because there are
three 1's out there...

What's the most efficient way to do this?

Thanks