例如,给定列表['one', 'two', 'one'],算法应返回True,而给定['one', 'two', 'three'],算法应返回False。
['one', 'two', 'one']
True
['one', 'two', 'three']
False
https://stackoverflow.com/questions/1541797
相似问题