[Solved] Accessing Nested For Loop Indexes
[ad_1] This will not visit all indexes of the array because array indexes begin at 0, not 1. In other words, the first element of the 2D array would be adjacencyMatrix[0][0] so you should start both of your iterations from 0. If the array has a length of 5, the largest index would therefore be … Read more