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
Ali Alfaraj
NA
68
108k
Sorting an int array as MAX, MIN, MAX,.....
Nov 25 2014 1:36 AM
Good day dear members,
I would like to write a function that will take an int array as an argument proudces any array that is sorted as MAX, MIN, MAX,.......
For example given the below int array:
int
[] ExamScore =
new
int
[] { 55, 11, 21, 6 };
When passed to the required function, the resultent array would be sorted like this: 55, 6, 21, 11.
It basically takes the MAX and MIN of the initial array, then eliminate them and look for the new MAX and MIN values within the remaining items.
I appriciated your kind support on this.
Regards,
Ali
Reply
Answers (
3
)
How to transform an object that is tapped in mobile platform
How to read analog input from Arduino using C#