Raw Message
Message-ID: <DAAA469C56BB694A92A7FB4D94EB5AEF034FC1@PISJEXESS06.powerint.com> Date: 2012-11-02T21:20:13Z From: Mark Del Cerro Subject: Determine longest run of number Does anybody know a way to determine the longest run of a number in a vector of numbers? For example if I have the following numbers: 0 0 1 1 1 1 0 1 1 0 0 0 1 1; how can I determine that the longest run of 1's = 4 and longest run of 0's = 3? Thanks, Mark