题解 | #提取不重复的整数#
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
while ((line = await readline())) { let num = line.toString(); let arr = num.split("").reverse(); arr=Array.from(new Set(arr)); console.log(parseInt(arr.join(''))); }
#提取不重复的整数#