📅  最后修改于: 2022-03-11 15:04:00.783000             🧑  作者: Mango
const fibo = (n, memo = {}) => memo[n] || (n <= 2 ? 1 : (memo[n] = fibo(n - 1, memo) + fibo(n - 2, memo)));
// Examples
fibo(6); // 8