题解 | #提取不重复的整数#
提取不重复的整数
http://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
while(line = readline()) {
var str = line.trim()
var length = str.length
var tempArr = []
while (length--) {
var n = str[length]
if (!tempArr.includes(n)) {
tempArr.push(n)
}
}
console.log(tempArr.join(''))
}