This commit is contained in:
surister 2019-11-28 11:04:10 +01:00
parent 4135b09412
commit e63da0db62

View File

@ -2260,7 +2260,7 @@ x, y = y, x
<summary>How to check if all the elements in a given lists are unique? so [1, 2, 3] is unique but [1, 1, 2, 3] is not unique because 1 exists twice</summary><br><b>
</b>
There are many ways of solving this problem:
There are many ways of solving this problem:<br>
<code># Note: :list and -> bool are just python typings, they are not needed for the correct execution of the algorithm. </code>
Taking advantage of sets and len: