Re: Struggling for inspiration with lists

2013-12-18 Thread Jean-Michel Pichavant
- Original Message - Hi I have a list of data that presents as: timestamp: value Timestamps are used solely to determine the sequence of items in the list. I want to find the longest repeated sequence of values in the list. Example, in the following list: data = { 0: d,

Struggling for inspiration with lists

2013-12-17 Thread Denis McMahon
Hi I have a list of data that presents as: timestamp: value Timestamps are used solely to determine the sequence of items in the list. I want to find the longest repeated sequence of values in the list. Example, in the following list: data = { 0: d, 1: x, 2: y, 3: t, 4: d, 5: y, 77: g' 78:

Re: Struggling for inspiration with lists

2013-12-17 Thread Tim Chase
On 2013-12-18 03:51, Denis McMahon wrote: I need to keep the timestamp / data association because I need to generate output that identifies (a) the longest repeated sequence (b) how many elements in the longest repeated sequence (c) at what timestamps each occurrence started. I'm not sure