Using bitwise operations, how would you test that a number is a power of 2? — bool isPowerOfTwo = (x & (x - 1);
G
1.2K
Google Interview
This flashcard deck made by jwasham contains knowledge about google interview. For more details, please follow https://github.com/jwasham/google-interview-university