This is MY SOLUTION for the problem SPATH, I don’t know why I am getting NZEC, anyone please help me to figure out what is wrong with my code.
You cannot create arrays of parameterized types.
`static List<Pair> adj = new List;`
static List<List<Pair>> adj = new ArrayList<>();
and if you are using The Class List Please import all of its methods as well.
If this was the case them my code should not even work locally.
can you take a look at this.