DEV Community

Discussion on: Find the starting node in a directed graph which covers the maximum number of nodes

Collapse
 
ubaid77 profile image
Mohammad Ubaid • Edited

arrayoutofbounds error for node 3 3 1

Collapse
 
sumit profile image
Sumit Singh

On my machine, the test case you have given is working fine. It would be very beneficial if you can just attach a screenshot of what you have tried.

Collapse
 
anxious_morty profile image
Deepak Rawte • Edited

Just because indices must be changed to 2 2 0, just copying code won't work :) in challenges. if using static -----> do arr[i] = B[i]-1;