Power of 2

Run Settings
LanguageC++
Language Version
Run Command
class Solution { public: bool isPowerOfTwo(int n) { return (n < 1) ? false : !(n & (n - 1)); } };
Editor Settings
Theme
Key bindings
Full width
Lines