题解 | #相同的Set#
相同的Set
http://www.nowcoder.com/practice/1417539606b84ad081147516158153a1
关键点:
- 遍历s1,判断上中的项目是否都在s2中出现
for(let s of s1){
if(!s2.has(s)) return false;
}
return true;
相同的Set
http://www.nowcoder.com/practice/1417539606b84ad081147516158153a1
关键点:
for(let s of s1){
if(!s2.has(s)) return false;
}
return true;
相关推荐