in reply to
Seeking the longest string in an array
That's not O(N
2
).
/$a/
involves some serious looping. Probably O(M
2
). So O(N
2
*M
2
) total
N = number of words.
M = length of word.
Comment on
Re: Seeking the longest string in an array
Download
Code
In Section
Seekers of Perl Wisdom