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.
Agree regarding week test cases.
My approach is to consider travel from home to work. Cost of the road one takes is P[step]... that is fixed. From the road there are exist several exits to other paid roads. Overall, it is network of paid roads.
The task, re-formulated, is to find minimal cost travel.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Robot
You are viewing a single comment's thread. Return to all comments →
Agree regarding week test cases. My approach is to consider travel from home to work. Cost of the road one takes is P[step]... that is fixed. From the road there are exist several exits to other paid roads. Overall, it is network of paid roads. The task, re-formulated, is to find minimal cost travel.