All Different
Return True if no value appears twice in nums, otherwise False. A single value counts as all different.
Example 1
nums [4,1,7]
returns true
No repeats.
Example 2
nums [4,1,4]
returns false
4 appears twice.
Constraints
1 <= len(nums) <= 100
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More NumPy problems
- Average of Chosen RowsEasy
- Average of Top ThreeEasy
- Biggest JumpEasy
- Brighten ImageEasy
- Bucket CountsEasy
- Busiest ColumnEasy
- Change Between RowsEasy
- Close EnoughEasy