2
Answers

Find unique strings for a string array

Ask a question
George George

George George

15y
2.9k
1

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)