We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
i created distances from all the bikers to all the bikes and put it in a 2D matrix. and i searched the values from minimum to highest, until i get values from K rows and K colunms(so that a all K bikers get a bike) but only first 6 test cases pass. i bought a test case and i found out that my answer is lower than the expected value. any clue??
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Bike Racers
You are viewing a single comment's thread. Return to all comments →
i created distances from all the bikers to all the bikes and put it in a 2D matrix. and i searched the values from minimum to highest, until i get values from K rows and K colunms(so that a all K bikers get a bike) but only first 6 test cases pass. i bought a test case and i found out that my answer is lower than the expected value. any clue??