mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<p>Given a <code>target</code> representing the value of the wheels that will unlock the lock, return the minimum total number of turns required to open the lock, or -1 if it is impossible.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> deadends = ["0201","0101","0102","1212","2002"], target = "0202"
|
||||
@@ -18,7 +18,7 @@ Note that a sequence like "0000" -> "0001" -> "00
|
||||
because the wheels of the lock become stuck after the display becomes the dead end "0102".
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> deadends = ["8888"], target = "0009"
|
||||
@@ -26,7 +26,7 @@ because the wheels of the lock become stuck after the display becomes the dead e
|
||||
<strong>Explanation:</strong> We can turn the last wheel in reverse to move from "0000" -> "0009".
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> deadends = ["8887","8889","8878","8898","8788","8988","7888","9888"], target = "8888"
|
||||
|
Reference in New Issue
Block a user