Check for duplicates in list
Checks if there are duplicate values in a flat list.
- Use
set()
on the given list to remove duplicates, compare its length with the length of the list.
Checks if there are duplicate values in a flat list.
set()
on the given list to remove duplicates, compare its length with the length of the list.