Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write code in C language. There are N cities and M bidirectional roads. The i-th road connects city A, and city B,, and the cost
write code in C language.
There are N cities and M bidirectional roads. The i-th road connects city A, and city B,, and the cost of passing it is C. You have a VIP card, that can let you go through any road for free. The VIP card can be used only once. Your objective is to travel from city 1 to city N. Find the minimum possible total cost.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started