Join 60,000+ competitive exam aspirants
In a certain code language, 'REST' is coded as '4529' and 'HERS' is coded as '5279'. What is the code for 'H' in the given code language?
7
2
5
9
7
Identify the code by comparing the two given words: 'REST' has common letters with 'HERS'. Since R, E, S are shared, their codes must be shared. The common numbers between 4529 and 5279 are 5, 2, and 9. Thus, H must be the unique number remaining in 'HERS' (5279) that is not in 'REST' (4529).
Identify the code by comparing the two given words: 'REST' has common letters with 'HERS'. Since R, E, S are shared, their codes must be shared. The common numbers between 4529 and 5279 are 5, 2, and 9. Thus, H must be the unique number remaining in 'HERS' (5279) that is not in 'REST' (4529).
Analyze Commonality
Identify shared letters between 'REST' and 'HERS': R, E, S. Their corresponding digit set is {5, 2, 9} (the shared digits in 4529 and 5279).
Isolate the Unique Term
Compare the sets: 'REST' has 'T' (code 4) while 'HERS' has 'H' (code 7). Since R, E, S map to 5, 2, and 9 in some order, the remaining mapping must be H = 7.
B: 5 is shared by both words (it maps to one of R, E, or S). C: 2 is also shared (maps to R, E, or S). D: 9 is shared as well (maps to R, E, or S). Only 7 is unique to HERS.
A is correct because 7 is the only digit present in the code for 'HERS' (5279) that does not appear in the code for 'REST' (4529), uniquely identifying it as the code for 'H'.
In coding-decoding questions with overlapping letters, always look for the unique element first rather than trying to map every individual letter!