ran npm run tdd & generated TDD
This commit is contained in:
4
test/geometricProgression/geometricProgression.js
Normal file
4
test/geometricProgression/geometricProgression.js
Normal file
@ -0,0 +1,4 @@
|
||||
module.exports = (end, start = 1, step = 2) =>
|
||||
Array.from({ length: Math.floor(Math.log(end / start) / Math.log(step)) + 1 }).map(
|
||||
(v, i) => start * step ** i
|
||||
);
|
||||
Reference in New Issue
Block a user