in reply to Re: •SPOILERS Re: (OT) Interview questions -- your response?
in thread (OT) Interview questions -- your response?
Fencepost error. I think you mean:
@array[$_,-$_-1]=@array[-$_-1,$_] for 0..$#array/2;
The middle pair was swapped twice to no effect for even sized arrays, the middle element swapped with itself for odd.
After Compline,
Zaxo
|
---|
Replies are listed 'Best First'. | |
---|---|
•Re: Re: Re: •SPOILERS Re: (OT) Interview questions -- your response?
by merlyn (Sage) on Sep 03, 2002 at 19:39 UTC | |
Re: Re: Re: •SPOILERS Re: (OT) Interview questions -- your response?
by demerphq (Chancellor) on Sep 04, 2002 at 08:44 UTC |