Skip to content

Want to Add Power of Four logic using Logarithm #9331

@crocmons

Description

@crocmons

Feature description

Want to Add DSA Solution of this problem - Power of Four - using Logarithm

Problem Statement -
Given an integer n, return true if it is a power of four. Otherwise, return false.
An integer n is a power of four, if there exists an integer x such that n == 4x.

Example 1:
Input: n = 16
Output: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis PR modified some existing files

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions