For example, given the list ['one', 'two', 'one'], the algorithm should return True, whereas given ['one', 'two', 'three'] it should return False.

15 Answers
15

Leave a Reply

Your email address will not be published. Required fields are marked *