Showing:
Handle Score
@Ibrahim Nash 5761
@akhayrutdinov 5111
@mb1973 4989
@Quandray 4944
@saiujwal13083 4506
@sanjay05 3762
@marius_valentin_dragoi 3516
@sushant_a 3459
@verma_ji 3341
@KshamaGupta 3318
Check if a Integer is power of 8 or not
Easy Accuracy: 50.01% Submissions: 134 Points: 2

Given a positive integer N, The task is to find if it is a power of eight or not.

Example 1:

Input: 64
Output: Yes
Explanation: 64 is power of 8.


Example 2:

Input: 75
Output: No
Explanation: 75 is not a power of 8.



You don't need to read or print anything. your task is to complete the function is_power_of_eight() which takes N as the input parameter and returns "Yes" if N is power of eight otherwise returns "No"(Wihtout quotes).

Expected Time Complexity: O(log(N))
Expected Space Complexity: O(1)

Constraints:
1 <= N <= 1018