1 2 3 4 5 6 7 8 9 10 11
#include "leetcode.h" class Solution { public: bool isPowerOfTwo(int n) { if (n) } }; int main() { Solution obj; obj.isPowerOfTwo(16); }