mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 16:01:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<p>Note that if the car reaches a gas station with <code>0</code> fuel left, the car can still refuel there. If the car reaches the destination with <code>0</code> fuel left, it is still considered to have arrived.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> target = 1, startFuel = 1, stations = []
|
||||
@@ -17,7 +17,7 @@
|
||||
<strong>Explanation:</strong> We can reach the target without refueling.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> target = 100, startFuel = 1, stations = [[10,100]]
|
||||
@@ -25,7 +25,7 @@
|
||||
<strong>Explanation:</strong> We can not reach the target (or even the first gas station).
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> target = 100, startFuel = 10, stations = [[10,60],[20,30],[30,30],[60,40]]
|
||||
@@ -43,6 +43,6 @@ We made 2 refueling stops along the way, so we return 2.
|
||||
<ul>
|
||||
<li><code>1 <= target, startFuel <= 10<sup>9</sup></code></li>
|
||||
<li><code>0 <= stations.length <= 500</code></li>
|
||||
<li><code>0 <= position<sub>i</sub> <= position<sub>i+1</sub> < target</code></li>
|
||||
<li><code>1 <= position<sub>i</sub> < position<sub>i+1</sub> < target</code></li>
|
||||
<li><code>1 <= fuel<sub>i</sub> < 10<sup>9</sup></code></li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user