递归

var find = n=>{
if(n==1){return 0}
if(n==2 || n ==3){return 1}
return find(n-1)+find(n-2)+find(n-3)
}

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务