Update sorted union bonfire description
A camper requested more clarification on this challenge. Re-reading it, it was convoluted as to how the returned array should have been ordered.pull/100/head
parent
c1115cbc7c
commit
d12e25f250
|
@ -310,7 +310,9 @@
|
||||||
"name": "Sorted Union",
|
"name": "Sorted Union",
|
||||||
"difficulty": "2.07",
|
"difficulty": "2.07",
|
||||||
"description": [
|
"description": [
|
||||||
"Write a function that takes two or more arrays and returns a new array of unique values sorted in order."
|
"Write a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays.",
|
||||||
|
"The unique numbers should be sorted by their original order, but the final array should not be sorted in numerical order.",
|
||||||
|
"Check the assertion tests for examples."
|
||||||
],
|
],
|
||||||
"challengeSeed": "function unite(arr) {\n return arr;\r\n}\n\nunite([1, 2, 3], [5, 2, 1, 4], [2, 1]);",
|
"challengeSeed": "function unite(arr) {\n return arr;\r\n}\n\nunite([1, 2, 3], [5, 2, 1, 4], [2, 1]);",
|
||||||
"tests": [
|
"tests": [
|
||||||
|
@ -564,4 +566,4 @@
|
||||||
"assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [1, 'Dirty Sock'], [1, 'Hair pin'], [1, 'Half-Eaten Apple'], [1, 'Microphone'], [1, 'Toothpaste']]);"
|
"assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [1, 'Dirty Sock'], [1, 'Hair pin'], [1, 'Half-Eaten Apple'], [1, 'Microphone'], [1, 'Toothpaste']]);"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue