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.
WTF this question is way too hard for a 40 score medium question. had to run dynamic programming on subsets of fishes, with a run of dijkstra at each subset, to get the answer
Synchronous Shopping
You are viewing a single comment's thread. Return to all comments →
WTF this question is way too hard for a 40 score medium question. had to run dynamic programming on subsets of fishes, with a run of dijkstra at each subset, to get the answer
O(2^k * (k*V + (V+E)*log(V)))