deno.land / x / masx200_leetcode_test@10.6.5 / fibonacci-number / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
import { fibonacci_bigint } from "./fibonacci_bigint.ts";
export default function fibonacci_Number(n: number | bigint): number | bigint { const result = fibonacci_bigint(BigInt(n)); if (result < Number.MAX_SAFE_INTEGER) { return Number(result); } else { return result; }}
masx200_leetcode_test

Version Info

Tagged at
a year ago