Re: The 1st Official Puzzle in Years!! (Lucky You)



In article <72dca4FoieeeU1@xxxxxxxxxxxxxxxxxx>,
Julius Kavay <kavay@xxxxxxx> wrote:
Rod Dorman wrote:

IMHO a large percentage of people would expect a free form phone
string of "1-800-Flowers" would normalize to 8003569377

something like this?

Str2Tel(s) $tr($zcvt(s,"l"), "abcdefghijklmnopqrstuvwxzy",
"22233344455566677778889999")

Well sure, the M[UMPS] code to map from a telephone keypad to digits
is trivial.

What I was questioning was what 'normalize' meant in this puzzle. By
throwing away non-digits it was excluding a popular representation of
phone numbers.

Some examples that break the 10-digit rule are:
800-SHREDDING
877-MAMMO2GO
877-SEND-FLOWERS
800-Terminix
800-Wachovia
888-MY-DOC-FIND

--
-- Rod --
rodd(at)polylogics(dot)com
.



Relevant Pages

  • Re: mapping numbers to random numbers and back
    ... I am looking for a simple algorithm to map small integers (4 digits, ... unsigned int unhash ...
    (comp.programming)
  • Re: introduce just ONE aleph-one infinity
    ... Space is till aleph 1. ... and by taking digits in groups of three(one ... you can map the unit cube to the unit interval. ... cantor is wrong! ...
    (sci.math)
  • Re: mapping numbers to random numbers and back
    ... I am looking for a simple algorithm to map small integers (4 digits, ... Do you want to change the mapping every so often or is it permanent? ... add a spurious digit for padding and shift each of the five digits by ...
    (comp.programming)
  • Re: Help me with this Numerology code please...
    ... The OP seems to be just learning ruby, so let's make this a learning exercise by ... #we may have to do the next part more than once, so start a loop ... digits = sum.to_s.split# split the number into single digits ...
    (comp.lang.ruby)