数组需要深拷贝,第4行改成,let tmp = [...road]; tmp.push([i,j]);
1

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务