题解 | #字符个数统计#
字符个数统计
http://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
while(count = readline()){ res = [] for(let i of count) { if(res.indexOf(i)<0){ res.push(i) } } console.log(res.length) } 又是个for+if实现的简单题在这冒充中等题
字符个数统计
http://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
while(count = readline()){ res = [] for(let i of count) { if(res.indexOf(i)<0){ res.push(i) } } console.log(res.length) } 又是个for+if实现的简单题在这冒充中等题
相关推荐