bless$self=>perlmonks; has asked for the wisdom of the Perl Monks concerning the following question:
How expensive is it to reverse an array? Is it an O(1) or O(n) operation? Or something else?
Anyone want to give a quick overview of how arrays and strings are implemented in Perl? What data structures, etc.?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How expensive is reverse?
by maverick (Curate) on Sep 01, 2001 at 21:35 UTC | |
by nardo (Friar) on Sep 01, 2001 at 22:08 UTC | |
Re: How expensive is reverse?
by tachyon (Chancellor) on Sep 01, 2001 at 22:14 UTC | |
Re (tilly) 1: How expensive is reverse?
by tilly (Archbishop) on Sep 03, 2001 at 04:57 UTC |
Back to
Seekers of Perl Wisdom