npx standard --fix

This commit is contained in:
cclauss
2020-05-03 09:05:12 +02:00
parent e62ad2f73e
commit 856dc2f63c
47 changed files with 2240 additions and 2371 deletions

View File

@@ -8,18 +8,18 @@
// of the input value n, it is exponential in the size of n as
// a function of the number of input bits
function fib(n) {
var table = [];
table.push(1);
table.push(1);
for (var i = 2; i < n; ++i) {
table.push(table[i - 1] + table[i - 2]);
}
console.log("Fibonacci #%d = %d", n, table[n - 1]);
function fib (n) {
var table = []
table.push(1)
table.push(1)
for (var i = 2; i < n; ++i) {
table.push(table[i - 1] + table[i - 2])
}
console.log('Fibonacci #%d = %d', n, table[n - 1])
}
fib(1);
fib(2);
fib(200);
fib(5);
fib(10);
fib(1)
fib(2)
fib(200)
fib(5)
fib(10)