mirror of
				https://gitee.com/coder-xiaomo/leetcode-problemset
				synced 2025-11-04 11:43:12 +08:00 
			
		
		
		
	移除零宽空格
This commit is contained in:
		@@ -11,10 +11,10 @@
 | 
			
		||||
<p><strong class="example">Example 1:</strong></p>
 | 
			
		||||
 | 
			
		||||
<pre>
 | 
			
		||||
<strong>Input:</strong> 
 | 
			
		||||
fn = async (n) => { 
 | 
			
		||||
  await new Promise(res => setTimeout(res, 100)); 
 | 
			
		||||
  return n * n; 
 | 
			
		||||
<strong>Input:</strong>
 | 
			
		||||
fn = async (n) => {
 | 
			
		||||
  await new Promise(res => setTimeout(res, 100));
 | 
			
		||||
  return n * n;
 | 
			
		||||
}
 | 
			
		||||
inputs = [5]
 | 
			
		||||
t = 50
 | 
			
		||||
@@ -37,10 +37,10 @@ The provided function is set to resolve after 100ms. However, the time limit is
 | 
			
		||||
<p><strong class="example">Example 2:</strong></p>
 | 
			
		||||
 | 
			
		||||
<pre>
 | 
			
		||||
<strong>Input:</strong> 
 | 
			
		||||
fn = async (n) => { 
 | 
			
		||||
  await new Promise(res => setTimeout(res, 100)); 
 | 
			
		||||
  return n * n; 
 | 
			
		||||
<strong>Input:</strong>
 | 
			
		||||
fn = async (n) => {
 | 
			
		||||
  await new Promise(res => setTimeout(res, 100));
 | 
			
		||||
  return n * n;
 | 
			
		||||
}
 | 
			
		||||
inputs = [5]
 | 
			
		||||
t = 150
 | 
			
		||||
@@ -52,23 +52,23 @@ The function resolved 5 * 5 = 25 at t=100ms. The time limit is never reached.
 | 
			
		||||
<p><strong class="example">Example 3:</strong></p>
 | 
			
		||||
 | 
			
		||||
<pre>
 | 
			
		||||
<strong>Input:</strong> 
 | 
			
		||||
fn = async (a, b) => { 
 | 
			
		||||
  await new Promise(res => setTimeout(res, 120)); 
 | 
			
		||||
  return a + b; 
 | 
			
		||||
<strong>Input:</strong>
 | 
			
		||||
fn = async (a, b) => {
 | 
			
		||||
  await new Promise(res => setTimeout(res, 120));
 | 
			
		||||
  return a + b;
 | 
			
		||||
}
 | 
			
		||||
inputs = [5,10]
 | 
			
		||||
t = 150
 | 
			
		||||
<strong>Output:</strong> {"resolved":15,"time":120}
 | 
			
		||||
<strong>Explanation:</strong>
 | 
			
		||||
The function resolved 5 + 10 = 15 at t=120ms. The time limit is never reached.
 | 
			
		||||
The function resolved 5 + 10 = 15 at t=120ms. The time limit is never reached.
 | 
			
		||||
</pre>
 | 
			
		||||
 | 
			
		||||
<p><strong class="example">Example 4:</strong></p>
 | 
			
		||||
 | 
			
		||||
<pre>
 | 
			
		||||
<strong>Input:</strong> 
 | 
			
		||||
fn = async () => { 
 | 
			
		||||
<strong>Input:</strong>
 | 
			
		||||
fn = async () => {
 | 
			
		||||
  throw "Error";
 | 
			
		||||
}
 | 
			
		||||
inputs = []
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user