function solution(arr) { // 代码写在这里 }
数组只包含字符串,0 < 每个字符串的长度 <= 10,0 <= 数组长度 <= 20
如果包含重复的字符串,返回 true; 否则返回 false
hello world
false
hello world in programming world
true
包含重复字符串 hello
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题