🔥 remove example files

This commit is contained in:
Nate Sesti 2024-05-17 17:24:43 -07:00
parent c52b6e732c
commit d73783e851
2 changed files with 0 additions and 20 deletions

View file

@ -1,12 +0,0 @@
import { factorial, repeat } from "./factorial";
function fib(n) {
if (n <= 1) return n;
return fib(n - 2) + fib(n - 1);
}
let d = repeat(5, "a");
console.log(d);
let e = factorial(3);
console.log(e);

View file

@ -1,8 +0,0 @@
export function factorial(n) {
if (n <= 1) return 1;
return n * factorial(n - 1);
}
export function repeat(n: number, a: string) {
return a.repeat(n);
}