mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-07 16:31:42 +08:00
移除零宽空格
This commit is contained in:
@@ -9,14 +9,14 @@
|
||||
|
||||
<p>This continues until none of the queue students want to take the top sandwich and are thus unable to eat.</p>
|
||||
|
||||
<p>You are given two integer arrays <code>students</code> and <code>sandwiches</code> where <code>sandwiches[i]</code> is the type of the <code>i<sup>th</sup></code> sandwich in the stack (<code>i = 0</code> is the top of the stack) and <code>students[j]</code> is the preference of the <code>j<sup>th</sup></code> student in the initial queue (<code>j = 0</code> is the front of the queue). Return <em>the number of students that are unable to eat.</em></p>
|
||||
<p>You are given two integer arrays <code>students</code> and <code>sandwiches</code> where <code>sandwiches[i]</code> is the type of the <code>i<sup>th</sup></code> sandwich in the stack (<code>i = 0</code> is the top of the stack) and <code>students[j]</code> is the preference of the <code>j<sup>th</sup></code> student in the initial queue (<code>j = 0</code> is the front of the queue). Return <em>the number of students that are unable to eat.</em></p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> students = [1,1,0,0], sandwiches = [0,1,0,1]
|
||||
<strong>Output:</strong> 0<strong>
|
||||
<strong>Output:</strong> 0<strong>
|
||||
Explanation:</strong>
|
||||
- Front student leaves the top sandwich and returns to the end of the line making students = [1,0,0,1].
|
||||
- Front student leaves the top sandwich and returns to the end of the line making students = [0,0,1,1].
|
||||
|
Reference in New Issue
Block a user