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
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
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
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