Back to problems

Delivery Management System (QR Intern)

Algorithm · Akuna Capital · Medium

A factory operates from one city within a road network. Its products must be sent to other cities using two-way roads, but certain cities might be unreachable if no connecting route exists. Deliveries are sequenced by shortest distance first and then by priority. Priority is determined by city number, with lower-numbered cities having higher priority. Given the total city count, the roads joining the cities, and the factory's city, return the order in which deliveries are…

Checking your access…