22 lines
536 B
Python
22 lines
536 B
Python
# HumanEval/54
|
|
# Loki Mode Multi-Agent Solution
|
|
# Attempts: 1
|
|
# Passed: True
|
|
|
|
def same_chars(s0: str, s1: str):
|
|
"""
|
|
Check if two words have the same characters.
|
|
>>> same_chars('eabcdzzzz', 'dddzzzzzzzddeddabc')
|
|
True
|
|
>>> same_chars('abcd', 'dddddddabc')
|
|
True
|
|
>>> same_chars('dddddddabc', 'abcd')
|
|
True
|
|
>>> same_chars('eabcd', 'dddddddabc')
|
|
False
|
|
>>> same_chars('abcd', 'dddddddabce')
|
|
False
|
|
>>> same_chars('eabcdzzzz', 'dddzzzzzzzddddabc')
|
|
False
|
|
"""
|
|
return set(s0) == set(s1) |