tag:blogger.com,1999:blog-21895954.post114037974980988467..comments2023-10-11T01:39:25.473-07:00Comments on Andrus Development: A Microsoft Riddle:William Andrushttp://www.blogger.com/profile/03485818134703783587noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-21895954.post-1140381484657860842006-02-19T12:38:00.000-08:002006-02-19T12:38:00.000-08:00Thanks for your answer, I was just too lazy to com...Thanks for your answer, I was just too lazy to come up this solution the first time through, since I just woke up, so I just let the computer do all the thinking for me. I came close to the real solution though.<BR/><BR/>Distance 3000, me: 2150, ans: 2142<BR/>Distance 2500, me: 1800, ans: 1785<BR/>Distance 2000, me: 1450, ans: 1428William Andrushttps://www.blogger.com/profile/03485818134703783587noreply@blogger.comtag:blogger.com,1999:blog-21895954.post-1140380683199706712006-02-19T12:24:00.000-08:002006-02-19T12:24:00.000-08:00This is a well known puzzle - not a test of progra...This is a well known puzzle - not a test of programming skills but of ability to reason mathematically. It takes d/(s1 + s2) hours for the crash to occur, where d is the distance and s1 and s2 are the speeds of the trains. During that amount of time the bird will fly the number of hours times the speed of the bird. So an exact solution is d * 25/(15+20) = d*5/7. Think first - then program.Old Mathhttps://www.blogger.com/profile/12495184085749596145noreply@blogger.com