diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/stern-brocot-sequence.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/stern-brocot-sequence.md
index a6bb5ef3b21..3aedf64540e 100644
--- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/stern-brocot-sequence.md
+++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/stern-brocot-sequence.md
@@ -6,8 +6,7 @@ challengeType: 5
## Description
-Create a function that returns the $ n^{th} $ member of the sequence using the method outlined above.
@@ -31,12 +30,11 @@ For this task, the Stern-Brocot sequence is to be generated by an algorithm simi
mergeLists
should be a function.
testString: assert(typeof mergeLists == 'function', 'mergeLists
should be a function.');
- - text: mergeLists([[1, 3, 5, 9, 10], [2, 4, 6, 7, 8]])
should return a array.
- testString: assert(Array.isArray(mergeLists([[1, 3, 5, 9, 10], [2, 4, 6, 7, 8]])), 'mergeLists([[1, 3, 5, 9, 10], [2, 4, 6, 7, 8]])
should return a array.');
+ - text: mergeLists([[1, 3, 5, 9, 10], [2, 4, 6, 7, 8]])
should return an array.
+ testString: assert(Array.isArray(mergeLists([[1, 3, 5, 9, 10], [2, 4, 6, 7, 8]])), 'mergeLists([[1, 3, 5, 9, 10], [2, 4, 6, 7, 8]])
should return an array.');
- text: mergeLists([[1, 3, 5, 9, 10], [2, 4, 6, 7, 8]])
should return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
.
testString: assert.deepEqual(mergeLists([[1, 3, 5, 9, 10], [2, 4, 6, 7, 8]]), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 'mergeLists([[1, 3, 5, 9, 10], [2, 4, 6, 7, 8]])
should return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
.');
- text: mergeLists([[1, 4, 7, 10], [2, 5, 8, 11], [3, 6, 9, 12]])
should return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
.
@@ -42,7 +42,7 @@ tests:
15 17 -1 17 -1 -1 16 1 -1 16 3 -1 15 15 0 0 -1 72 101 108 108 111 44 32 119 111 114 108 100 33 10 0Which corresponds to something like this in a hypothetical assembler language: -
start: ++start: zero, message, -1 message, -1, -1 neg1, start+1, -1 @@ -43,14 +43,14 @@ Which corresponds to something like this in a hypothetical assembler language: zero, zero, start zero: 0 neg1: -1 -message: "Hello, world!\n\0"-Write a function that takes an array of integers as a parameter. This represents the memory elements. The function -should interpret the sequence and return the output string. For this task, assume that there is no standard input. +message: "Hello, world!\n\0" +
123 + 4 - 5 + 67 - 89 = 100-Write a function that takes a number as parameter. The function should return an array containing all solutions for the given number. The solutions should be strings representing the expressions. For example: "1+23-456+78-9". Note: sort the array before returning it.
sumTo100
should be a function.
testString: assert(typeof sumTo100 == 'function', 'sumTo100
should be a function.');
- - text: sumTo100(199)
should return a array.
- testString: assert(Array.isArray(sumTo100(199)), 'sumTo100(199)
should return a array.');
+ - text: sumTo100(199)
should return an array.
+ testString: assert(Array.isArray(sumTo100(199)), 'sumTo100(199)
should return an array.');
- text: sumTo100(199)
should return ["-1+2-3+45+67+89", "123-4+5+6+78-9", "123-4+56+7+8+9"]
.
testString: assert.deepEqual(sumTo100(199), ["-1+2-3+45+67+89", "123-4+5+6+78-9", "123-4+56+7+8+9"], 'sumTo100(199)
should return ["-1+2-3+45+67+89", "123-4+5+6+78-9", "123-4+56+7+8+9"]
.');
- text: sumTo100(209)
should return ["1+234+56+7-89"]
.
@@ -46,7 +45,7 @@ tests:
[(50, 150), (200, 50), (350, 150), (350, 300), (250, 300), (200, 250), (150, 350), (100, 250), (100, 200)]and clip it by the rectangle defined by the points: -$[(100, 100), (300, 100), (300, 300), (100, 300)]$ -Write a function that takes 2 arrays as parameters. The first array contains the points of the subject polygon and the second array contains the points of the clipping polygon. The function should return an array containing the points of the clipped polygon. Each number should be rounded to 3 decimal places. +
[(100, 100), (300, 100), (300, 300), (100, 300)]
clip
should be a function.
testString: assert(typeof clip == 'function', 'clip
should be a function.');
- - text: clip([[50, 150], [200, 50], [350, 150], [350, 300], [250, 300], [200, 250], [150, 350], [100, 250], [100, 200]], [[100, 100], [300, 100], [300, 300], [100, 300]])
should return a array.
- testString: assert(Array.isArray(clip([[50, 150], [200, 50], [350, 150], [350, 300], [250, 300], [200, 250], [150, 350], [100, 250], [100, 200]], [[100, 100], [300, 100], [300, 300], [100, 300]])), 'clip([[50, 150], [200, 50], [350, 150], [350, 300], [250, 300], [200, 250], [150, 350], [100, 250], [100, 200]], [[100, 100], [300, 100], [300, 300], [100, 300]])
should return a array.');
+ - text: clip([[50, 150], [200, 50], [350, 150], [350, 300], [250, 300], [200, 250], [150, 350], [100, 250], [100, 200]], [[100, 100], [300, 100], [300, 300], [100, 300]])
should return an array.
+ testString: assert(Array.isArray(clip([[50, 150], [200, 50], [350, 150], [350, 300], [250, 300], [200, 250], [150, 350], [100, 250], [100, 200]], [[100, 100], [300, 100], [300, 300], [100, 300]])), 'clip([[50, 150], [200, 50], [350, 150], [350, 300], [250, 300], [200, 250], [150, 350], [100, 250], [100, 200]], [[100, 100], [300, 100], [300, 300], [100, 300]])
should return an array.');
- text: clip([[50, 150], [200, 50], [350, 150], [350, 300], [250, 300], [200, 250], [150, 350], [100, 250], [100, 200]], [[100, 100], [300, 100], [300, 300], [100, 300]])
should return [[100, 116.667], [125, 100], [275, 100], [300, 116.667], [300, 300], [250, 300], [200, 250], [175, 300], [125, 300], [100, 250]]
.
testString: assert.deepEqual(clip([[50, 150], [200, 50], [350, 150], [350, 300], [250, 300], [200, 250], [150, 350], [100, 250], [100, 200]], [[100, 100], [300, 100], [300, 300], [100, 300]]), [[100, 116.667], [125, 100], [275, 100], [300, 116.667], [300, 300], [250, 300], [200, 250], [175, 300], [125, 300], [100, 250]], 'clip([[50, 150], [200, 50], [350, 150], [350, 300], [250, 300], [200, 250], [150, 350], [100, 250], [100, 200]], [[100, 100], [300, 100], [300, 300], [100, 300]])
should return [[100, 116.667], [125, 100], [275, 100], [300, 116.667], [300, 300], [250, 300], [200, 250], [175, 300], [125, 300], [100, 250]]
.');
- text: clip([[150, 200], [400, 450], [30, 50]], [[10, 10], [300, 200], [400, 600], [100, 300]])
should return [[150, 200], [350, 400], [348.611, 394.444], [30, 50]]
.
@@ -44,7 +43,7 @@ tests:
symmetricDifference
should be a function.
testString: assert(typeof symmetricDifference == 'function', 'symmetricDifference
should be a function.');
- - text: symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])
should return a array.
- testString: assert(Array.isArray(symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])), 'symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])
should return a array.');
+ - text: symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])
should return an array.
+ testString: assert(Array.isArray(symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])), 'symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])
should return an array.');
- text: symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])
should return ["Jim", "Serena"]
.
testString: assert.deepEqual(symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"]), ["Jim", "Serena"], 'symmetricDifference(["John", "Bob", "Mary", "Serena"], ["Jim", "Mary", "John", "Bob"])
should return ["Jim", "Serena"]
.');
- text: symmetricDifference([1, 2, 3], [3, 4])
should return [1, 2, 4]
.
@@ -45,7 +44,7 @@ tests: