Interview
Maths Puzzle
Category
There is an odometer in a bike and it is broken in a way whenever there supposed to be value 4 in one of the 5 digits in odometer it skips that and shows 5. It is not able to display the digit 4. For example, if the odometer is at reading 32363 KM then next reading it will show is 32365 and not 32364 or if the odometer shows 39999 then next reading it will show is 5000 instead 4000. So if odometer shows the current reading 56287 then what is its actual reading?
Read Solution (Total 4)
-
- The answer for this is 30120.
Trying running the java code below:
int count = 0;
for (int i = 1; i - 6 years agoHelpfull: Yes(5) No(5)
- What is the answer for this?
- 7 years agoHelpfull: Yes(0) No(4)
- I've got the solution, please visit my git repository at-
https://github.com/voidviking/srijan_exercises/blob/master/exercise_1_code.rb
I hope It will help. - 7 years agoHelpfull: Yes(0) No(3)
- 46287. There are many possibilities,as the example given above it shows 5000 instead of 4000,the nearest digit in 56287 is '5'.So it skips 46287 and shows 56287
- 2 years agoHelpfull: Yes(0) No(0)
Interview Other Question