Question: DATA STRUCTURES IN C/ TREES Please only use c language. (at the end of the question there will be an example of the problem for

2. Number of path that yield minimum cost: 2 3. Minimum number of flights while minimizing the cost: 1 4. Maximum number of flights while minimizing the cost: '2 The first line of input gives the number of test cases, T(1T50). Then T test cases follow each described in the following way: 1. The first line contains two integers n(1n105) and m(1m2105) separated by spaces, which indicate the number of countries and the number of flights. 2. In the subsequent m lines, each line contain three integers s,t,c(1s,tn,1 c109) separated by spaces, which indicate there is a flight from country s to country t with cost c.1 and n represent your starting point and destination respectively. note: You may assume that there is a path from starting point to destination
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
