题解 | #字符串排序#
字符串排序
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 const arr = [] while(line = await readline()){ if(!parseInt(line)){ arr.push(line) } } arr.sort().forEach(item=>{ console.log(item) }) }()#华为od##huawei##华为od机考#