Answer to the Average Speed Problem + RSP Results
A similar but not quite so tricky puzzle is if I travel to a town at 60 mph and then return from there at 40 mph due to slow traffic, what is my average speed for my entire journey? The answer is 48* mph not the 50 that most people guess. The principle is you must not average averages and this type of knowledge isn't usually taught in comp sci classes. So a little bit of maths and/or physics knowledge can come in useful, especially with interview questions!
* Say the distance is 120 miles. It takes two hours to get there and three hours to return. 240 /5 hours = 48 mph average speed.


Comments
No comments yet. Leave a Comment