Re: [閒聊] 每日leetcode

看板Marginalman作者 (通通打死)時間1年前 (2024/08/22 21:52), 編輯推噓1(101)
留言2則, 2人參與, 1年前最新討論串755/1548 (看更多)
int findComplement(int num) { int a = -1; int b = num; while(b>0) { a <<= 1; b >>= 1; } return num^(~a); } 肥肥想了很久 現在連當easy守門員都有點問題了 :( -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 125.229.37.69 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Marginalman/M.1724334762.A.106.html

08/22 21:57, 1年前 , 1F
大師
08/22 21:57, 1F

08/22 22:03, 1年前 , 2F
這題不難
08/22 22:03, 2F
文章代碼(AID): #1cnqAg46 (Marginalman)
討論串 (同標題文章)
文章代碼(AID): #1cnqAg46 (Marginalman)