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
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

VulpesPosted Nov 25, 2014, 7:17 AM
Ali AlfarajPosted Nov 25, 2014, 3:03 AM
The language I'm using is visual c#.
Joginder BangerPosted Nov 25, 2014, 2:59 AM
have no clear in your question which language are used. if you are use c# language have a predefined function.
clear which language are used..