Max Routes With Budget
Starting from city 0 with a given budget, visit as many distinct cities as possible by traveling roads with costs. Use Dijkstra to compute shortest paths, then explore cities within the budget.
Starting from city 0 with a given budget, visit as many distinct cities as possible by traveling roads with costs. Use Dijkstra to compute shortest paths, then explore cities within the budget.