Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a program to check for a duplicate element #1

Closed
hitaarthh opened this issue Oct 8, 2022 · 3 comments
Closed

Create a program to check for a duplicate element #1

hitaarthh opened this issue Oct 8, 2022 · 3 comments
Assignees
Labels
hacktoberfest hacktoberfest contribution hacktoberfest-accepted hacktoberfest PR accepted

Comments

@hitaarthh
Copy link
Owner

hitaarthh commented Oct 8, 2022

Write a C program to find duplicate elements in an integer array. Return the index of the duplicate elements if found else return -1.

Example:

int arr[5] = {1,2,2,3,4};

so here the integer 2 is repeated, hence it will return index 1 and 2.

You can access the files here: https://github.com/hitaarthh/C-Basics/blob/main/duplicateElement.c

@Suraksha-Rajagopalan
Copy link
Collaborator

@hitaarthh Can u assign me for this issue?

@hitaarthh hitaarthh added hacktoberfest hacktoberfest contribution hacktoberfest-accepted hacktoberfest PR accepted labels Oct 8, 2022
@hitaarthh
Copy link
Owner Author

@Suraksha-Rajagopalan Yes, you may proceed.

@Suraksha-Rajagopalan
Copy link
Collaborator

Pushed the necessary changes. #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest hacktoberfest contribution hacktoberfest-accepted hacktoberfest PR accepted
Projects
None yet
Development

No branches or pull requests

2 participants