{"id":3384,"date":"2019-05-09T14:58:54","date_gmt":"2019-05-09T14:58:54","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=3384"},"modified":"2019-05-09T15:03:03","modified_gmt":"2019-05-09T15:03:03","slug":"distance-puzzles","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/distance-puzzles\/","title":{"rendered":"Distance Puzzles"},"content":{"rendered":"<p><strong>Problems<\/strong><br \/>\n<strong>Q1.Calculate total distance traveled by bee<\/strong>Two trains are on the same track and they are coming toward each other. The speed of the first train is 50 KMs\/h and the speed of second train is 70 KMs\/h. A bee starts flying between the trains when the distance between two trains is 100 KMs. The bee first flies from the first train to the second train. Once it reaches the second train, it immediately flies back to the second train \u2026 and so on until trains collide. Calculate the total distance traveled by the bee. Speed of bee is 80 KMs\/h.<\/p>\n<p><strong>Solutions<\/strong><br \/>\n<strong>Calculate total distance traveled by bee<\/strong><\/p>\n<pre>\r\n                                        80km\/h\r\n                        50km\/h       <---------->        70km\/h \r\n------------------------Train1->         bee             <-Train2-------------------------\r\n                                <----------------------->  \r\n                                        100km\/h\r\n<\/pre>\n<p>Time left for the train to meet each other = 100\/(50+70) = 100\/120=0.83 = 49.8 Minutes<br \/>\nThe Fly will zigzag between train till that time at speed of 80km\/h = (80\/60)*49.8 = 1.33*49.8 = 66.4KM  <\/p>\n<p>Lets solve the same problem with some easy values as below<\/p>\n<pre>\r\n                                        40km\/h\r\n                        20km\/h       <---------->        20km\/h \r\n------------------------Train1->         bee             <-Train2-------------------------\r\n                                <----------------------->  \r\n                                        100km\/h\r\n<\/pre>\n<p>Time left for the train to meet each other = 100\/(20+20) = 100\/40=2.5(2Hrs30 Minutes)<br \/>\nThe Fly will zigzag between train till that time at speed of 40km\/h = (40\/60)*150 = 0.66*150 = 100KM  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problems Q1.Calculate total distance traveled by beeTwo trains are on the same track and they are coming toward each other. The speed of the first train is 50 KMs\/h and the speed of second train is 70 KMs\/h. A bee starts flying between the trains when the distance between two trains is 100 KMs. The&hellip; <a href=\"https:\/\/codethataint.com\/blog\/distance-puzzles\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[280],"tags":[],"class_list":["post-3384","post","type-post","status-publish","format-standard","hentry","category-speed-and-distance"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/3384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=3384"}],"version-history":[{"count":3,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/3384\/revisions"}],"predecessor-version":[{"id":3387,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/3384\/revisions\/3387"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=3384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=3384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=3384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}