I have two string arrays
string[] input; //user input could be any size
string[] output; //a copy of user input but, should not be larger than 50
if input length <= 50, then output is an exact copy of input.
if input array length > 50 then it will copy only 50 elements from input
It must have the first and last element from input
and select the rest evenly; it's not just simply taking the first or last 50 elements.
What's the most efficient way to do this?
UPDATE say input[] has 98 elements. then you would take the first and last elements and then divide the rest by 2 to get 50 elements
98-2=96
96/2=48
2+48=50