Re: [閒聊] 每日LeetCode已回收

看板Marginalman作者 (廷廷)時間1年前 (2024/02/19 19:01), 編輯推噓1(101)
留言2則, 2人參與, 1年前最新討論串695/719 (看更多)
前幾天看C考題看到一模一樣的 一行解決 非常好布林 231. Power of Two class Solution { public: bool isPowerOfTwo(int n) { return n>0 && (n & n-1)==0; } }; -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.113.0.229 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Marginalman/M.1708340512.A.BB7.html

02/19 19:08, 1年前 , 1F
考題分一下
02/19 19:08, 1F

02/19 19:09, 1年前 , 2F
我這題是算他有幾個1 好像有點爛
02/19 19:09, 2F
文章代碼(AID): #1bqpKWkt (Marginalman)
討論串 (同標題文章)
文章代碼(AID): #1bqpKWkt (Marginalman)