Yes, that's a coincidence!

Logic Level 3

Ashish was admiring the output of his new program to generate random number. He had printed out the first ten numbers of the results. He soon noticed that each of the ten numbers had exactly one digit, in the proper placement, of the 5 digit code he used to open his car door without a key. Find Ashish's car entry code from these first 10 randomly generated numbers : \(14073,\space 79588, \space 05892, \space 84771, \space 63136,\space 42936, \space 37145,\space 50811,\space 98174,\space and \space 29402\). Ashish has announced that he will give his car to that person who will crack the key number.

Explicit Example: if Ashish's key code is 12345(obviously not the solution), then a randomly generated number will be such that, one and only one of its digit will match with the car key. Suppose the number generated is 54321. Now this number has 3 which matches with the car keys. Another number say 12543, has 2 as the matching digit.

Second Explicit Example: In the fist number 14073, Ashish's car code could not be 34170(two digits correctly placed(4 and 7)) or 92365 (none).

×

Problem Loading...

Note Loading...

Set Loading...