test: add playground lab to practice
This commit is contained in:
10
backend/src/utils/math.ts
Normal file
10
backend/src/utils/math.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export function myCustomAdd(a: number, b: number): number {
|
||||
return a + b
|
||||
}
|
||||
|
||||
export function fabonacci(n: number): number {
|
||||
if (n === 1 || n === 2) {
|
||||
return 1
|
||||
}
|
||||
return fabonacci(n - 1) + fabonacci(n - 2)
|
||||
}
|
||||
Reference in New Issue
Block a user