能想到的就是fibonacci,但是需要保存每一年出生的对数,时间和空间复杂度都是O(y)
点赞 2

相关推荐

刘湘_passion:出国旅游?那就小心你的腰子咯
点赞 评论 收藏
分享
牛客网
牛客企业服务