BLIND75: Contains Duplicate - Leetcode 217 - Python

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

You can easily do that by set1 = set(that list) list1 = list(set1) so you can check the length by if len(list1) < len(that list) return true else return false

kathirm
welcome to shbcf.ru