in reply to •Re: Re: (OT) Interview questions -- your response?
in thread (OT) Interview questions -- your response?
@array[$left,$right] = @array[$right,$left];
Isn't any more "in-place", as it is the same thing when the array is only two elements. And I didn't see where using a constant amount of additional memory was part of the requirement :-)
|
---|