摘要:
思路:原本需要算n次,依次算x^1,x^2,...,x^n,时间复杂度O(n),现在只需要算一半就行 链接:https://leetcode cn.com/problems/shu zhi de zheng shu ci fang lcof/solution/mian shi ti 16 shu z 阅读全文
posted @ 2020-04-16 21:29
程序员小宇
阅读(215)
评论(0)
推荐(0)
摘要:
解法1: 解法2: 链接:https://leetcode cn.com/problems/er jin zhi zhong 1de ge shu lcof/solution/mian shi ti 15 er jin zhi zhong 1de ge shu wei yun/ 阅读全文
posted @ 2020-04-16 20:43
程序员小宇
阅读(108)
评论(0)
推荐(0)

浙公网安备 33010602011771号