Cody

Problem 1069. Phoneword Translator

Given an alphanumeric telephone number (Ex. 1-800-COLLECT), return the purely numeric phone number as a vector. This problem uses the US number associations as shown below

Example:

    phoneword = '1-800-COLLECT';
    phonenumber = phoneword2number(phoneword);

outputs

    phonenumber = [1 8 0 0 2 6 5 5 3 2 8]

Solution Stats

64.1% Correct | 35.9% Incorrect
Last solution submitted on Sep 04, 2019

Problem Comments