题解 | #整型数组合并#
整型数组合并
https://www.nowcoder.com/practice/c4f11ea2c886429faf91decfaf6a310b
const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () => (await iter.next()).value; void async function () { // Write your code here const inputs = []; while(line = await readline()){ inputs.push(line.split(" ").map(Number)); } const arr1 = inputs[1]; const arr2 = inputs[3]; console.log((Array.from(new Set([...arr1,...arr2]))).sort((a,b)=>a-b).join("")); }()