zl程序教程

LeetCode:Pow(x, n)

  • Java实现 LeetCode 50 Pow(x,n)

    Java实现 LeetCode 50 Pow(x,n)

    50. Pow(x, n) 实现

    日期 2023-06-12 10:48:40     
  • [LeetCode] Power of Three | Power of Two

    [LeetCode] Power of Three | Power of Two

    Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example: Given num = 16, return true. Given num = 5, return false. Follow up: Could you solve it

    日期 2023-06-12 10:48:40     
  • LeetCode Pow(x, n)-简单粗暴法解决

    LeetCode Pow(x, n)-简单粗暴法解决

    实现 pow(x, n) ,即计算 x 的 n 次幂函数(即,xn)。 示例 1: 输入:x = 2.00000, n = 10 输出:1024.00000 示例 2: 输入:x = 2.10000, n = 3

    日期 2023-06-12 10:48:40     
  • leetcode 231. Power of Two

    leetcode 231. Power of Two

    Given an integer, write a function to determine if it is a power of two. class Solution(object): def isPowerOfTwo(self, n): """ :type n: int :rtype: bool """

    日期 2023-06-12 10:48:40