LeetCode刷题-存在重复元素

一、题目描述
https://leetcode-cn.com/problems/contains-duplicate/
二、解题思路
用元组set()判断有没有重复
三、代码实现
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/V_ince/article/details/92802892
今日推荐