LeetCode 217 Contains Duplicate

Опубликовано: 04 Ноябрь 2024
на канале: Hustle Interviews With Ashutosh
114
11

01:10 : Solution Approach
02:15 : Code It Up

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.

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

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

Link: https://leetcode.com/problems/contain...

#competitiveprogramming #interview #interviewquestion
#coding #leetcode #programmer #tech #software #leetcode #programmingisfun