|
INTERVIEW QUESTIONS
GENERAL
PUZZLES
DETAILS
Question: Substitute digits for the letters to make the following relation true.
S T I L L + W I T H I N -------------------- L I M I T S
Note that the leftmost letter can't be zero in any word. Also, there must be a one-to-one mapping between digits and letters. e.g. if you substitute 3 for the letter S, no other letter can be 3 and all other S in the puzzle must be 3.
Answer: The value of L must be one more than W i.e. L=W+1 and there must be one carry from S+I=I. Also, the value of S must be 9 as S+I=I with one carry from T+T=M, which means that the value of T must be greater than 4. From I+H=I, the value of H must be 0 as the value of S is 9.
Now, applying all those constraints and using trial-n-error, we get two possible answers.
9 7 1 6 6 9 8 5 3 3
+ 5 1 7 0 1 3 + 2 5 8 0 5 6 --------------- --------------- 6 1 4 1 7 9 3 5 6 5 8 9
|
|
|
Category |
Puzzles Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7316 users |
Added on |
9/23/2014 |
Views |
69882 |
Rate it! |
|
|
Question:
Substitute digits for the letters to make the following relation true.
S T I L L + W I T H I N -------------------- L I M I T S
Note that the leftmost letter can't be zero in any word. Also, there must be a one-to-one mapping between digits and letters. e.g. if you substitute 3 for the letter S, no other letter can be 3 and all other S in the puzzle must be 3.
Answer:
The value of L must be one more than W i.e. L=W+1 and there must be one carry from S+I=I. Also, the value of S must be 9 as S+I=I with one carry from T+T=M, which means that the value of T must be greater than 4. From I+H=I, the value of H must be 0 as the value of S is 9.
Now, applying all those constraints and using trial-n-error, we get two possible answers.
9 7 1 6 6 9 8 5 3 3
+ 5 1 7 0 1 3 + 2 5 8 0 5 6 --------------- --------------- 6 1 4 1 7 9 3 5 6 5 8 9 Source: CoolInterview.com
The second answer 258056 +98533 --------- 356589
is wrong as the value of both N and M is 6 here.
I have tried all the combinations and there seems to be only one solution i.e. the first one 517013 + 97166 ---------- 614179
The other constraints that i have found while solving the question are :
L cant be 1 N cant be 8 H = 0 T can have only values 6/7/8 and corresponding M is 2/4/6 Source: CoolInterview.com
Answered by: Sameer | Date: 6/27/2010
| Contact Sameer
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Consider an n by n grid of squares. A square is said to be a neighbour of another one if it lies directly above/below or to its right/left. Thus, each square has at most four neighbours. Initially, some squares are marked. At successive clock ticks, an unmarked square marks itself if at least two of its neighbours are marked. What is the minimum number of squares we need to mark initially so that all squares eventually get marked?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Puzzles Interview Questions & Answers - Exam Mode /
Learning Mode
|