xinyu04

导航

2023年7月19日 #

LeetCode 1201. Ugly Number III 数学+二分答案

摘要: An ugly number is a positive integer that is divisible by $a$, $b$, or $c$. Given four integers $n$, $a$, $b$, and $c$, return the $n$th ugly number. 阅读全文

posted @ 2023-07-19 20:57 Blackzxy 阅读(2) 评论(0) 推荐(0) 编辑

LeetCode 875. Koko Eating Bananas 二分答案

摘要: Koko loves to eat bananas. There are $n$ piles of bananas, the $i$th pile has $piles[i]$ bananas. The guards have gone and will come back in `h` hours 阅读全文

posted @ 2023-07-19 19:43 Blackzxy 阅读(3) 评论(0) 推荐(0) 编辑

LeetCode 1011. Capacity To Ship Packages Within D Days 二分答案

摘要: A conveyor belt has packages that must be shipped from one port to another within `days` days. The ith package on the conveyor belt has a weight of $w 阅读全文

posted @ 2023-07-19 16:34 Blackzxy 阅读(3) 评论(0) 推荐(0) 编辑