题解 | #字符串排序#
字符串排序
https://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
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 let index = 0; let arr = []; while(line = await readline()){ if(index === 0)index++; else { arr.push(line); } } arr.sort(); for(const i of arr){ console.log(i); } }()