Two Sigma

1 DSA problems asked in Two Sigma coding interviews

1 Easy
0 Medium
0 Hard
​

1 problem

Bit Manipulation
1
Power of Four
Easy

Given an integer n, return true if it is a power of four, and false otherwise. An integer n is a power of four if there is an integer x such that n == 4^x. Follow up: can you solve it without loops or recursion?