Threadser.net
數據
關鍵字
功能建議
Blog
Following
Threads
Change language
登入
串文
串文鏈結
2025-03-16 03:17
<每天記錄直到我上選訓> 2025.3.16 problem : https://leetcode.com/problems/minimum-time-to-repair-cars/?envType=daily-question&envId=2025-03-16 code : https://pastebin.pl/view/b4175c68 題目大意 : 等級為 r 的機械師可以在 r * n^2 分鐘內修理 n 輛汽車,求修理所有汽車所需的最短時間 實作方式 : 不難想到是 對答案二分搜 ranks[i] 表 可以在 ranks[i] * n^2 的時間 修理 n 輛車 ->時間內可修理 (時間/ranks[i])^0.5
讚
12
回覆
0
轉發
作者
math and computer science
math.computer_science
粉絲
171
串文
102+
讚
回覆
轉發
24小時粉絲增長
無資料
互動率
(讚 + 回覆 + 轉發) / 粉絲數
7.02%
回覆 (BETA)
最先回覆的內容
發文後
用戶
內容