in reply to Re: Challenge - Creative Way To Detect Alpha Characters
in thread Challenge - Creative Way To Detect Alpha Characters

You'd then have to scan the list twice. Once to convert, once to compare.

The original (and best) solution did 3 passes by both upping and lowing the string and comparing, but all three passes where in C rather than perl, so fast.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^3: Challenge - Creative Way To Detect Alpha Characters
by parv (Parson) on Sep 14, 2004 at 22:05 UTC

    (I removed my comment about the first statement of BrowserUK about which i am still thinking.)

    Yes, you are quite right, BrowserUK, on the point of original solution being the best; it is simple, short, and to the point.