题解 | 字符串字符匹配
字符串字符匹配
https://www.nowcoder.com/practice/22fdeb9610ef426f9505e3ab60164c93
import sys
a = input()
b = input()
a_s = set(a)
b_s = set(b)
for _ in a_s:
if _ not in b_s:
print("false")
exit(0)
print("true")
set 做下hash 然后判断a 哈希是不是都在b哈希里面
凡岛公司福利 528人发布