umdreamer / leetcodeproblems

Solutions for LeetCode OJ
3 stars 9 forks source link

2023.05.31 Problem: 217. Contains Duplicate #27

Closed umdreamer closed 1 year ago

umdreamer commented 1 year ago
  1. Contains Duplicate Problem Link

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:

cuixiao02 commented 1 year ago
截屏2023-05-31 12 00 26
tangyexi commented 1 year ago
屏幕截图 2023-05-31 123549
gusuning commented 1 year ago
屏幕截图 2023-05-31 144104
zhjingyan commented 1 year ago

image

Lggg1234 commented 1 year ago

屏幕截图 2023-05-31 171556

mafanjia commented 1 year ago

截屏217

123lrb commented 1 year ago

SMA6$WHWB L3}950XRH$@FM

PinkyLame commented 1 year ago

image

12baoxingyu-6 commented 1 year ago
image
sjh397 commented 1 year ago

image

liu-si-han commented 1 year ago
image
1125766961 commented 1 year ago

image

huangyumei1 commented 1 year ago

QQ图片20230531203533

yeyuxq commented 1 year ago

image

syr2212061031 commented 1 year ago

FCEUX6BT9V4VT@$}7X 1~IQ

ZWJ2212061008 commented 1 year ago

image

liuhuanyu6 commented 1 year ago

image

zxm-1235 commented 1 year ago

image

24zlx commented 1 year ago

联想截图_20230531205951

xkqwww commented 1 year ago

无标题

promisewith7 commented 1 year ago
联想截图_20230531211312
htywan commented 1 year ago

1

naqianqpg commented 1 year ago

1UEY`5E1_`VA}XAVEF)3Q2C

686xiaozhang commented 1 year ago

QQ截图20230531214938

daowuwu commented 1 year ago

XL{2F@I@(`D ARX2MCIFU2

zyhzxy99 commented 1 year ago

Q0N0ND5{`L6 G)}U5C)Y7SW

FXL1006 commented 1 year ago
image
wangshiqi7 commented 1 year ago
截屏2023-05-31 22 14 34
bedauern commented 1 year ago
Snipaste_2023-05-31_22-17-42
foxbou commented 1 year ago
image
xiaolu2002 commented 1 year ago

image

shylieisme commented 1 year ago

image

zangfushuo commented 1 year ago
截屏2023-05-31 23 30 00
zangfushuo commented 1 year ago
截屏2023-06-01 20 49 44