freeCodeCamp Challenge Guide: Create a Set Class

Create a Set Class


Problem Explanation

  • A Set is an abstract data structure.
  • It can store unique value and the collection is unordered.
  • In this challenge, we have to implement .add() method. This method should only add unique values to collection.
    • The method should return true, if the value is sucessfully added to the collection, otherwise it should return false.

Solutions

2 Likes