Skip to content

gss-coder/Python-Corey-Schafer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct.

 

Example 1:

Input: nums = [1,2,3,1]
Output: true

Example 2:

Input: nums = [1,2,3,4]
Output: false

Example 3:

Input: nums = [1,1,1,3,3,4,3,2,4,2]
Output: true

 

Constraints:

  • 1 <= nums.length <= 105
  • -109 <= nums[i] <= 109

Companies:
Apple, Amazon, Adobe, Microsoft

Related Topics:
Array, Hash Table

Similar Questions:

Screenshot from 2023-06-17 09-46-25 Screenshot from 2023-06-17 09-46-56 Screenshot from 2023-06-17 09-47-21 Screenshot from 2023-06-17 09-47-46 Screenshot from 2023-06-17 09-48-09 Screenshot from 2023-06-17 09-48-19 Screenshot from 2023-06-17 09-48-40 Screenshot from 2023-06-17 09-48-45 Screenshot from 2023-06-17 09-49-22 Screenshot from 2023-06-17 09-49-46 Screenshot from 2023-06-17 09-50-02

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published