Tagged: 

  • Duplicate Element

     Akash  updated 9 months, 4 weeks ago 1 Member · 1 Post
  • Akash 

    Administrator
    at

    Given a limited range array of size n where array contains elements between 1 to n-1 with one element repeating, find the duplicate element in it.

    For example

    Input: { 1, 2, 3, 4, 4 }

    Output:The duplicate element is 4

    Input: { 1, 2, 3, 4, 2 }Output: The duplicate element is 2

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
KodNest Training New Batch is starting on 5th October 2020. Attend one week free demo classes.Register Now

New Report

Close