let set = new Set(arr.flat(infinity)) arr = […set] arr.sort((a,b)=> a-b)
牛客网
牛客网在线编程
牛客网题解
牛客企业服务