diff --git a/seed/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json b/seed/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json index a04703c513..b855c353f9 100644 --- a/seed/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json +++ b/seed/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json @@ -227,15 +227,10 @@ "title": "Create a Set Class", "description": [ "In the next few exercises we are going to create a function to emulate a data structure called a \"Set\". A Set is like an array, but it cannot contain duplicate values. The typical use for a Set is to simply check for the presence of an item. This can be implemented with an object, for instance:", - "var set = new Object();", - "set.foo = true;", - "// See if foo exists in our set:", - "console.log(set.foo) // true", + "
var set = new Object();
set.foo = true;
// See if foo exists in our set:
console.log(set.foo) // true
", "In the next few exercises, we will build a full featured Set from scratch.", - "In this exercise you will add a function to add a value to our set collection:", - "this.add = function(){", - " //some code to add value to the set", - "}" + "For this exercise, create a function that will add a value to our set collection as long as the value does not already exist in the set. For example:", + "
this.add = function(element) {
//some code to add value to the set
}
" ], "challengeSeed": [ "function Set() {",