parent
e8948452fd
commit
1cc183ecdb
3 changed files with 4 additions and 3 deletions
3
src/prelude/math.ts
Normal file
3
src/prelude/math.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export function gcd(a: number, b: number): number {
|
||||
return b === 0 ? a : gcd(b, a % b);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue