[mplspm]: In a sorted list

Josh Aas josha at mac.com
Thu Mar 21 22:07:22 CST 2002


Hey MPM,
    If I have an alphabetically sorted array of strings (containing up to 2
million strings), and I want to find out if any strings in that array equal
a certain string (yes or no, not how many), what is the fastest way to do
that search? This seems basic to me, I just can't come up with the answer
and I have an hour to do so. Thanks a lot!
-Josh



--------------------------------------------------
Minneapolis Perl Mongers mailing list

To unsubscribe, send mail to majordomo at pm.org
with "unsubscribe mpls" in the body of the message.



More information about the Mpls-pm mailing list