TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Deepali Patil
NA
142
56.3k
Hi, I am trying to remove duplicate elements from the integer array. Please see my code.
Nov 25 2012 8:34 AM
Console.WriteLine("Enter the number");
int num = Convert.ToInt32(Console.ReadLine());
int[] array = new int[num];
Array.Sort(array);
for(int i = 0;i < array[i] ;i++)
{
if (array[0] == array[i])
{
}
}
I have sorted and i am comparing every element of the array with the next element.
But how to remove the duplicate element??
Reply
Answers (
1
)
Copy directory with only specific extension files
Sorting Gui Program