On Monday, May 20, 2002, at 01:48 , Jackson, Harry wrote:
>> -----Original Message-----
>> From: Beau E. Cox [mailto:[EMAIL PROTECTED]]
>> I ignored uniqueness because non-unique numbers are NOT consecutive.
>> My solution works on non-sorted input arrays.
>
> To be a picky twat.
>
> my @array = (1,2,3,12,13,14,16,17,18,1,2,3,19,20,21,22);
>
> It would not work on the unsorted array above. Even if we where to sort 
> this
> array if sort in perl is anything like the shell then it will not sort
> numerically.

again - merely establishing that without the actual
question from the instructor - it really is hard to resolve
what in god's furry name the initial conditions were, as
a basis for resolving the actual code that would win.

also - if you read 'man sort' you will find that sort -n
understands how to do numeric sorting....

ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to