题解 | 相同的Set
相同的Set
https://www.nowcoder.com/practice/1417539606b84ad081147516158153a1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<script>
const _isSameSet = (s1, s2) => {
// 补全代码
return s1.size === s2.size && [...s1].every(x => s2.has(x));
}
</script>
</body>
</html>
