看板 Grad-ProbAsk 關於我們 聯絡資訊
https://i.imgur.com/8YxHvjg.jpg 這題書上的答案給CE但我算出來是O(n) (迴圈跑n次又裡面的兩行都O(1)) 請問有大大有別的見解嗎? ----- Sent from JPTT on my iPhone -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.251.236.50 ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1547030224.A.31B.html
st1009: 答案是錯的!答案應該是a 01/09 21:20
感謝 ~ ※ 編輯: o5739201 (111.251.236.50), 01/10/2019 08:31:25