题解 | #提取不重复的整数#
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
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 line = await readline(); let charArr = line.toString().split('').reverse(); let lastStr = ''; charArr.forEach(char =>{ if(lastStr.indexOf(char) == -1){ lastStr+=char; } }); console.log(Number(lastStr)); }()