About 5,100,000 results
Open links in new tab
  1. Find duplicate elements in an array - GeeksforGeeks

    Dec 19, 2024 · Given an array of n integers. The task is to find all elements that have more than one occurrences. The output should only be one occurrence of a number irrespective of the …

  2. C Program to print duplicate elements in an array - ProCoding

    Learn how to write a C program to print duplicate elements in an array. Explore methods using nested loops and frequency arrays, with complete code examples and explanations.

  3. Finding duplicate values in array in c - Stack Overflow

    I am trying to find the duplicate values in an array. When a number is duplicated once like (25,25) program correctly prints 25 once but when a number duplicated twice like (12,12,12) program …

  4. C program to print the duplicate elements of an array - Tpoint …

    Jan 7, 2025 · In this program, we need to print the duplicate elements present in the array. This can be done through two loops. The first loop will select an element and the second loop will …

  5. Find Duplicate Elements in Array in C - Know Program

    C Program to Find Duplicate Elements in an Array. The below program is applicable on any array which can be a sorted or an unsorted array. Here we will create a temporary array of similar …

  6. Program to Print Duplicate Element of an Array - C, C++ Code

    Write a C, C++ program to print duplicate element of an array. Given an array, Only one element in an array is repeated, print a duplicate element. Use two for loops, Compare each element of …

  7. C program for finding repeating element in an array - PrepInsta

    To find the repeated elements in an array we require two loops. One will be used for array traversal and the other one is used for comparing the current element with all other elements …

  8. C program to find a duplicate element in an array - Aticleworld

    Jan 9, 2021 · It is the simplest solution to print the duplicate element in a given array. In which you need to use nested loops. The outer loop picks elements one by one and counts the number …

  9. C Program to Find duplicates in an Array – Learn Programming

    Jul 5, 2024 · This program demonstrates how to find duplicate elements in an array using C. The algorithm iterates through the array and uses another array to track seen elements. If an …

  10. Count the number of duplicate elements in an array - C

    Jun 26, 2017 · Take a input from user in an Array of a size N and print the total number of duplicate elements (The elements which occur two or more times). Input Format: The first line …

Refresh