Letter coding-decoding is a fascinating mentalism effect. As the name indicates, the letter of words is replaced by certain other letters according to specific patterns and rules to form an encoded code in this code. In most cases, it involves alphabets (A, B, C….., Z)/(a,b,c…..,z) and something to code with these alphabets. In letter-letter coding, the candidate will have to get words from letters. Getting words from letters that we arrange as per a certain pattern or code is the topic of this section on Letter-letter coding.
These are some of the most common interview questions asked in Programming Interviews.
To solve these questions, one should write code for a problem.
There are many types of coding techniques used in interviews, and one of them is letter-letter coding.
Letter-letter coding is one of the common interview questions asked in programming interviews.
There are generally two types of problems in this topic:
1: You are given several letters with no pattern in their arrangement; you have to form words out of them.
2: The arrangement of letters follows a definite pattern.
We have to arrange the letters of a word in a certain order as per the condition given. The candidate has to get the word from the arranged letters.
For example, If we arrange DINNER as under:
D______R
I______E
I______N
N______I
The answer will be DINNER.
For example, If we arrange ARCODK as under:
A____C__D__K
R____O__K___
C____D___O__
O____K___D__
The answer will be ROCKET.
In banking exams, the examiner uses the basic concept of letter coding, letter-letter coding, number-letter coding. New concepts of coding-decoding are inspired by substitutional coding. In this type of coding, the data is encrypted or coded with a suitable letter.
Number to letter coding
Letter-Number Coding is one of the most important topics in the Reasoning section. In these questions, numerical values are assigned to a word, or alphabetical code letters are assigned to the numbers. The candidate must analyze the code as per the directions in the questions.
There are two types of Letter-Number coding Questions:
Letter Coding: In this type of coding, alphabets are assigned to digits from 1 to 9. Some alphabets may be allocated with more than one digit, and some digits can also be assigned with more than one alphabet.
Number Coding: In this type of coding, digits are assigned to alphabets from A to Z. Some digits can be allocated with more than one alphabet, and some alphabets may also be assigned with more than one digit.
Ranks of Letters
Alphabets | Forward Ranking | Backward Ranking |
A/a | 1 | 26 |
B/b | 2 | 25 |
C/c | 3 | 24 |
D/d | 4 | 23 |
E/e | 5 | 22 |
F/f | 6 | 21 |
G/g | 7 | 20 |
H/h | 8 | 19 |
I/i | 9 | 18 |
J/j | 10 | 17 |
K/k | 11 | 16 |
L/l | 12 | 15 |
M/m | 13 | 14 |
N/n | 14 | 13 |
O/o | 15 | 12 |
P/p | 16 | 11 |
Q/q | 17 | 10 |
R/r | 18 | 9 |
S/s | 19 | 8 |
T/t | 20 | 7 |
U/u | 21 | 6 |
V/v | 22 | 5 |
W/w | 23 | 4 |
X/x | 24 | 3 |
Y/y | 25 | 2 |
Z/z | 26 | 1 |
Example:
Q. In a certain code, AJAY is coded as 1 10 1 25. How will ARUN be coded?
A. Following the rankings given in the abovementioned table, the forward ranking of the letter A is given as 1, J is ten, and Y is 25. Following the analogy, the code of ARUN would go like this:
A- 1
R-18
U-21
N- 14
Note: Questions on similar concepts are made using forward coding backward coding.
To recall the ranking table while solving these questions, we can use the concept of EJOTY. ENJOY represents the position of the alphabets counting from the left at the interval of 5 letters. For example,
E: 1st alphabet
J: 6th alphabet
O: 11th alphabet
T: 16th alphabet
Y: 21st alphabet
The first letter of each word is represented by its EJOTY value, and the rest are encoded using their positions in that word.
EXERCISE
1. ‘JUNGLE’ is written as ‘QXGNMZ’ in a certain code. How is ‘LANGUAGE’ written in that code?
(a) MECLGHA
(b) OECLGHA
(c) OCELGHA
(d) OECLGHD
Conclusion
Letter coding becomes more topics-based and interesting as the students grow older. The students in upper primary school enjoy reading more, which improves their reading ability.