【Leetcode 217】Contains Duplicate
难度: 中等(Medium)
题目
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct.
代码
1 | class Solution(object): |
评论系统未开启,无法评论!