(15 XP) A function that removes all duplicate strings from an array.
- Fork this repository to your GitHub account.
- Open solution file in Visual Studio.
- Open file
ArrayTools.cs
. - Implement the method
RemoveDups(string[] strings)
that removes all duplicate strings from an array. - Run with
CTRL+F5
to test it. - If all tests are passed, commit & sync your repository.
- Send a link to your repository for Lab Master (in #slack) to check it.
RemoveDups(new string[]{ "The", "big", "cat" }) ➞ ["The", "big", "cat"]
RemoveDups(new string[]{ "John", "Taylor", "John" }) ➞ ["John", "Taylor"]
RemoveDups(new string[]{ "Reddit", "Instagram", "Reddit", "Facebook", "Instagram" }) ➞ ["Reddit", "Instagram", "Facebook"]
- Don't change the order of the strings.