摘要:
https://leetcode-cn.com/problems/shu-zhi-de-zheng-shu-ci-fang-lcof/ class Solution { public double myPow(double x, int n) { if(x == 0) return 0; long 阅读全文
posted @ 2022-02-28 16:08
Zhbeii
阅读(28)
评论(0)
推荐(0)
摘要:
https://leetcode-cn.com/problems/fei-bo-na-qi-shu-lie-lcof/ 使用动态规划 使用返回a,是因为,当使用b返回的时候需要考虑n == 0 的特例 class Solution { public int fib(int n) { int a = 阅读全文
posted @ 2022-02-28 14:22
Zhbeii
阅读(23)
评论(0)
推荐(0)

浙公网安备 33010602011771号