Andrew Murray
Harvard University
Followers: 0 Following: 0
Professional Interests: biology
Feeds
已回答
Length of the longest continuous string of the same number
This can be done in one line: out = max(diff(find([1,diff(A'),1]))); out = 4 This works by looking at the dif...
Length of the longest continuous string of the same number
This can be done in one line: out = max(diff(find([1,diff(A'),1]))); out = 4 This works by looking at the dif...
13 years 前 | 1