Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx
39
var assert = require('assert');
function pyramidPuzzle(n) {
return;
}
try {
assert.deepEqual(pyramidPuzzle(5), [
[1],
[1, 1],
[1, 2, 1],
[1, 3, 3, 1],
[1, 4, 6, 4, 1]
]);
console.log('PASSED: ' + "`pyramidPuzzle(5)` should return `[[1], [1, 1], [1, 2, 1], [1, 3, 3, 1], [1, 4, 6, 4, 1]]`");
} catch (err) {
console.log(err);
}
try {
assert.deepEqual(pyramidPuzzle(1), [
[1]
]);
console.log('PASSED: ' + "`pyramidPuzzle(1)` should return `[[1]]`");
} catch (err) {
console.log(err);
}
OUTPUT
Results will appear here.