Find Shortest element in Array

Posted by Ani on Stack Overflow See other posts from Stack Overflow or by Ani
Published on 2010-04-21T07:44:56Z Indexed on 2010/04/21 7:53 UTC
Read the original article Hit count: 407

Filed under:
|
|
|

I have a Array

string[] names = { "Jim Rand", "Barry Williams", "Nicole Dyne", "Peter Levitt", "Jane Jones", "Cathy Hortings"};

Is there any way to find which is the shortest(Length wise) element in this array and then store rest of elements in a different array.

Thanks, Ani

© Stack Overflow or respective owner

Related posts about shortest

Related posts about string