2
Reply

Find unique strings for a string array

George George

George George

Dec 23 2008 12:16 AM
2.9k

Hello everyone,

I have a string array, but may have duplicate strings. Any built-in or smart way to remove the duplicate ones and generate a string array contains only unique ones?

For example, the input array is {"abc", "bcd", "abc"}, the unique output array is {"abc", "bcd"}.

thanks in advance,
George


Answers (2)