GoLang Solution For LeetCode Problem: Power of Four
Solving Power of Four in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.
Given an integer (signed 32 bits), write a function to check whether it is a power of 4.
Input: 16 Output: true
Input: 5 Output: false
Follow up: Could you solve it without loops/recursion?
See the full details of the problem Power of Four at LeetCode
Originally posted at: @github.com/halfrost/LeetCode-Go