Help needed for week 1 quiz question number 6

In week 1 quiz question number 6 I have doubt. The question is following “Suppose we build a distance matrix D for the following case:Source: Pie → Target: Bye What is the value for D[3,2]?”

To solve this, I created distance matrix as follows

[[0., 1., 2., 3.],
[1., 2., 3., 4.],
[2., 3., 4., 5.],
[3., 4., 5., 4.]]

Based on the matrix I enter my answer is 3. But it is saying it’s wrong. What am i doing wrong here?

Hi @Ravin_Singh_D,

If your calculations are correct, it’s possible that the index starts from zero. So, the value of D[3,2] would be 5.

2 Likes