for (int j = 0; j < length[i] - 1; j++){findweight(path[i][j], path[i][j + 1]);}这个for循环的时间复杂度怎么计算啊
O(N*length[i])