摘要:
题源:leetcode 链接:https://leetcode-cn.com/problems/divisor-game/ 一开始就想到了数学方法,即return (n%2==0) 这里还有个动态规划的方法: 1 class Solution { 2 public: 3 bool divisorGa 阅读全文
摘要:
题源: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; 阅读全文