题解 | #字符串排序#
字符串排序
https://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
let num = readline(); let arr = []; while (line = readline()) { arr.push(line); }; arr.sort(); for (var i = 0; i < num; i++) { console.log(arr[i]) }
字符串排序
https://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
let num = readline(); let arr = []; while (line = readline()) { arr.push(line); }; arr.sort(); for (var i = 0; i < num; i++) { console.log(arr[i]) }
相关推荐