Skip to content

(15 XP) A function that removes all duplicate strings from an array.

License

Notifications You must be signed in to change notification settings

AppsLab2019/Open-Lab-04.09

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Open-Lab-04.09

(15 XP) A function that removes all duplicate strings from an array.

  1. Fork this repository to your GitHub account.
  2. Open solution file in Visual Studio.
  3. Open file ArrayTools.cs.
  4. Implement the method RemoveDups(string[] strings) that removes all duplicate strings from an array.
  5. Run with CTRL+F5 to test it.
  6. If all tests are passed, commit & sync your repository.
  7. Send a link to your repository for Lab Master (in #slack) to check it.

Examples:

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"]

Notes:

  • Don't change the order of the strings.

About

(15 XP) A function that removes all duplicate strings from an array.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages