Home /
Expert Answers /
Computer Science /
the-mapping-of-numbers-to-letters-just-like-phone-buttons-is-given-below-note-that-1-does-not-mat-pa206

The mapping of numbers to letters (just like phone buttons) is given below. Note that 1 does not match any letter.

Given a vector containing the numbers 2-9 with the R script you will write, print all possible letter combinations that the number can represent. You can compose the answer in any order.

For example:

v=[2.7]

output:

aj

ak

al

bj

v=[6,4,5]

output:

mgj

mhk

\( 1 \longdiv { 2 } \) 3 4 6 7 8 9 \#

Here is the solution to above problem Here is a sample R script that will print all possible letter combinations for a given vector of numbers: # Func