摘要: LeetCode 279. Perfect Squres DP 是笨办法中的高效办法,又是一道可以被好办法打败的 DP 题。 题目描述 Given a positive integer n, find the least number of perfect square numbers (for e 阅读全文
posted @ 2021-03-10 14:55 与MPI做斗争 阅读(69) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1025. 除数博弈 博弈问题,非常有趣。 题目描述 Alice and Bob take turns playing a game, with Alice starting first. Initially, there is a number N on the chalkboa 阅读全文
posted @ 2021-03-10 12:52 与MPI做斗争 阅读(51) 评论(0) 推荐(0) 编辑