Prev: Displaying graphic
Next: cross referencing two arrays
From: Luna Moon on 26 Jan 2010 16:32 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
|
Pages: 1 Prev: Displaying graphic Next: cross referencing two arrays |