题解 | #检查重复字符串#
检查重复字符串
http://www.nowcoder.com/practice/5ef31f11adf64d9fb18d74860e9ab873
function containsRepeatingLetter(str) {
const matches = str.match(/[a-zA-Z]{1}/g)
return matches.length !== Array.from(new Set(matches)).length
}
检查重复字符串
http://www.nowcoder.com/practice/5ef31f11adf64d9fb18d74860e9ab873
function containsRepeatingLetter(str) {
const matches = str.match(/[a-zA-Z]{1}/g)
return matches.length !== Array.from(new Set(matches)).length
}
相关推荐
冰炸橙汁_不做oj版:虽然石凯说这大作业能用但是我感觉走java后端还是算了吧,项目一般放两个就行,建议到知识星球上找个项目把前两个换掉