Another puzzle. Arranging digits
Do not write the answer in the Comments section. If you get the answer, simply message me on FB or write in the Comments section that you got it (without actually giving away the answer).
Can you come up with a 8 digited number where the digits are 1,1,2,2,3,3,4,4 and the following are true:
There are exactly 4 digits between the two “4”s in the number.
There are exactly 3 digits between the two “3”s in the number.
There are exactly 2 digits between the two “2”s in the number.
There is exactly 1 digit between the two “1”s in the number.
So, 12344321 cannot be an answer since there are 6 digits between the “1”s, 4 digits between the “2”s etc etc etc.
What is the number? (Hint: There are two answers)
Got it!
41312432
41312432
Since the answer is already posted the other number is the palindrome of the above
By that you mean reverse, right?
I assume Kaushik and Ritesh did not read the first paragraph?
Oops!
This is called the Langford’s problem. For example: 231213. Next assignment is to write a program to find all possible such numbers?
Got it!
For completeness sake, here re the answers as many of you have figured out… 41312432 and 23421314
The following had sent me the answers… Kaushik, Ritesh, Vishal, Rupa, Sourin, Asif, Ambarish, Nachiketa, Ranjan, Jishnu, Ramesh, Deepak, Kenneth, Pradeep, Madhusudhan and RipuDaman. I hope I have not missed anybody…