From d8f3b40085619cb680c8f227c65a1f5acc393223 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 23 Feb 2021 21:07:19 +0800 Subject: Move leetcode solutions to subdir. --- cpp/231.cpp | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 cpp/231.cpp (limited to 'cpp/231.cpp') diff --git a/cpp/231.cpp b/cpp/231.cpp deleted file mode 100644 index 8861e09..0000000 --- a/cpp/231.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#include - -class Solution { -public: - bool isPowerOfTwo(int n) { - if (n <= 0) return false; - std::bitset bits(n); - return bits.count() == 1; - } -}; -- cgit v1.2.3