About 172,000 results
Open links in new tab
  1. Contains Duplicate - LeetCode

    Contains Duplicate - 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] …

  2. 217. Contains Duplicate - Solution & Explanation

    Find the two elements that appear only once. You can return the answer in **any order**. You must write an algorithm that runs in linear runtime complexity and uses only constant extra space.

  3. Leetcode #13 : Contains Duplicate II - Medium

    Apr 3, 2025 · The Contains Duplicate II problem is a classic interview question that tests our ability to efficiently find duplicate elements within a specified range in an array.

  4. Contains Duplicate - LeetCodee

    Detailed solution explanation for LeetCode problem 217: Contains Duplicate. Solutions in Python, Java, C++, JavaScript, and C#.

  5. 217 - Contains Duplicate - Leetcode

    Jul 4, 2016 · We traverse the array and record the elements that have appeared in the hash table s. If an element appears for the second time, it means that there are duplicate elements in the …

  6. LeetCode Problem 217: Contains Duplicate - DEV Community

    Jun 11, 2024 · LeetCode Problem 217: Contains Duplicate Checking for Duplicate Elements in an Array Let's solve the problem step-by-step, providing a detailed explanation, code …

  7. Leetcode 217: Contains Duplicate - DSA Interview Preparation

    Nov 5, 2024 · In this blog, we'll be tackling LeetCode problem 217: "Contains Duplicate". It's a classic problem that tests your ability to effectively manage and analyze a dataset to check for …

  8. Solving “Contains Duplicate” on LeetCode — and What

    Jul 31, 2025 · As part of learning programming and algorithms, I’ve been working through some problems on LeetCode. One of the beginner-level problems I recently solved was “217. …

  9. 217. Contains Duplicate - LeetCode Problems - dyclassroom

    In this tutorial we will solve 217. Contains Duplicate problem from leetcode. Reference: 217. Contains Duplicate. In this problem we have an input integer array nums and we have to …

  10. Contains Duplicate - LeetCode

    Contains Duplicate - 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] …