Solve this please.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Solve this please..

Suppose I have a 10-digits lock. The lock has the following rule : The first digit of the code is the number of appearance of the digit '0' in the password The second digit of the code is the number of appearance of the digit '1' in the password The third digit of the code is the number of appearance of the digit '2' in the password and so on until... The 10th digit of the password is the number of occurrence of the digit '9' in the password. Your task, find my password?!

25th Dec 2016, 7:59 AM
Akhil Sonu
Akhil Sonu - avatar
7 Answers
+ 1
6210001000 Here you go, with a little spreadsheet to help solve it : https://docs.google.com/spreadsheets/d/1ZkjJZJ1o9P-KvWGFT3viF-smCUX02v_r6z4wbkCVpcA/edit?usp=sharing
25th Dec 2016, 3:01 PM
Amaras A
Amaras A - avatar
0
Mathematics: Using the counting principle: N = 1 * 1 * 9 * 10 * 10 * 10 * 10 * 10 * 10 = 9,000,000
25th Dec 2016, 8:24 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
no it's not
25th Dec 2016, 8:24 AM
Akhil Sonu
Akhil Sonu - avatar
0
0000000?
25th Dec 2016, 8:32 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
nope
25th Dec 2016, 8:32 AM
Akhil Sonu
Akhil Sonu - avatar
0
well using the trial an error technique I've found out that then highest number that can appear is 6.....
25th Dec 2016, 8:46 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
yeah right
25th Dec 2016, 8:53 AM
Akhil Sonu
Akhil Sonu - avatar