Back to problems

Shipping Route Cost Paths

Algorithm · Stripe · Medium

A logistics company runs an international parcel network and wants to offer customers a way to see every available shipment path between two countries. You have a list of available links, each encoded as a string with this shape: source and target are uppercase country codes. method is an uppercase label for the carrier servicing that connection. cost is a positive integer giving the price of using that carrier on that hop. Write a function that accepts a list of such…

Checking your access…