Re: finding consecutive numbers

2002-03-07 Thread Sudarsan Raghavan
Charles Lu wrote: > Hi > >I am trying to think of a quick and simple way to find out if a number > appears only in consecutive fashion once. In other words, a function that > will return true if a particular number in a list appears only consecutively > once. > > For example: Does "2" appea

Re: finding consecutive numbers

2002-03-07 Thread Tanton Gibbs
t_seen{$arr[$i]} = $i; } - Original Message - From: "Charles Lu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 07, 2002 4:59 PM Subject: finding consecutive numbers > > Hi > >I am trying to think of a quick and simple way to find out

Re: finding consecutive numbers

2002-03-07 Thread Michael Fowler
On Thu, Mar 07, 2002 at 04:59:54PM -0500, Charles Lu wrote: > I am trying to think of a quick and simple way to find out if a number > appears only in consecutive fashion once. In other words, a function that > will return true if a particular number in a list appears only > consecutively on

finding consecutive numbers

2002-03-07 Thread Charles Lu
Hi I am trying to think of a quick and simple way to find out if a number appears only in consecutive fashion once. In other words, a function that will return true if a particular number in a list appears only consecutively once. For example: Does "2" appear only in consecutive fashion