Social network
Given a set of existing routes in social network, a passenger wants to go from source A to destination B, your need to implement amethod to return the k nearest direct routes (user can follow to travel from A to B) efficiently. The basic requirements are below:1. k, A, B are arbitrary and can be […]