Question: Question 1 6 Max. score: 5 0 . 0 0 C + + 1 7 ( g + + 1 0 . 3 . 0
Question
Max. score:
Autocomplete ready!
Islands
The map contains islands, named from Island to Island N For any
two islands Island I and Island you can go to Island from
value for the last Island, equal to find the number of ways to reach
Island from the first Island, that is Island
Find the number of ways to reach Island from Island
Note: Assume based indexing.
Function description
Complete the solve function. This function takes the following
parameter and returns the required answer:
: Represents the index of the destination island
Input format for custom testing
Note: Use this input format if you are testing against custom input or
writing code in a language where we don't provide bollerplate code.
The first line contains which represents the number of test
cases.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
