摘要:
题源:leetcode 链接:https://leetcode-cn.com/problems/divisor-game/ 一开始就想到了数学方法,即return (n%2==0) 这里还有个动态规划的方法: 1 class Solution { 2 public: 3 bool divisorGa 阅读全文
posted @ 2021-07-30 11:03
Danae丶
阅读(43)
评论(0)
推荐(0)
摘要:
题源:leetcode 链接:https://leetcode-cn.com/problems/fibonacci-number/ 最基础的动态规划: 1 class Solution { 2 public: 3 int fib(int n) { 4 if (n < 2) { 5 return n; 阅读全文
posted @ 2021-07-30 10:59
Danae丶
阅读(56)
评论(0)
推荐(0)

浙公网安备 33010602011771号