findSequence
should be a function.
testString: assert(typeof findSequence == 'function');
- text: findSequence([3, 10, 2, 1, 20])
should return a array.
testString: assert(Array.isArray(findSequence([3, 10, 2, 1, 20])));
- text: findSequence([3, 10, 2, 1, 20])
should return [3, 10, 20]
.
testString: assert.deepEqual(findSequence([3, 10, 2, 1, 20]), [3, 10, 20]);
- text: findSequence([2, 7, 3, 5, 8])
should return [2, 3, 5, 8]
.
testString: assert.deepEqual(findSequence([2, 7, 3, 5, 8]), [2, 3, 5, 8]);
- text: findSequence([2, 6, 4, 5, 1])
should return [2, 4, 5]
.
testString: assert.deepEqual(findSequence([2, 6, 4, 5, 1]), [2, 4, 5]);
- text: findSequence([10, 22, 9, 33, 21, 50, 60, 80])
should return [10, 22, 33, 50, 60, 80]
.
testString: assert.deepEqual(findSequence([10, 22, 9, 33, 21, 50, 60, 80]), [10, 22, 33, 50, 60, 80]);
- text: findSequence([0, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15])
should return [0, 2, 6, 9, 11, 15
.
testString: assert.deepEqual(findSequence([0, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15]), [0, 2, 6, 9, 11, 15]);
```