You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: solution/1200-1299/1222.Queens That Can Attack the King/README_EN.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## Description
6
6
7
-
<p>On a <strong>0-indexed</strong> <code>8 x 8</code> chessboard, there can be multiple black queens ad one white king.</p>
7
+
<p>On a <strong>0-indexed</strong> <code>8 x 8</code> chessboard, there can be multiple black queens and one white king.</p>
8
8
9
9
<p>You are given a 2D integer array <code>queens</code> where <code>queens[i] = [xQueen<sub>i</sub>, yQueen<sub>i</sub>]</code> represents the position of the <code>i<sup>th</sup></code> black queen on the chessboard. You are also given an integer array <code>king</code> of length <code>2</code> where <code>king = [xKing, yKing]</code> represents the position of the white king.</p>
Copy file name to clipboardexpand all lines: solution/2500-2599/2533.Number of Good Binary Strings/README_EN.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
</li>
18
18
<li>The size of each block of consecutive <code>0</code>'s is a multiple of <code>zeroGroup</code>.
19
19
<ul>
20
-
<li>For example, in a binary string <code><u>00</u>11<u>0</u>1111<u>00</u></code> sizes of each block of consecutive ones are <code>[2,1,2]</code>.</li>
20
+
<li>For example, in a binary string <code><u>00</u>11<u>0</u>1111<u>00</u></code> sizes of each block of consecutive zeros are <code>[2,1,2]</code>.</li>
Copy file name to clipboardexpand all lines: solution/2700-2799/2715.Timeout Cancellation/README_EN.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,10 @@
6
6
7
7
<p>Given a function <code>fn</code>, an array of arguments <code>args</code>, and a timeout <code>t</code> in milliseconds, return a cancel function <code>cancelFn</code>.</p>
8
8
9
-
<p>After a delay of <code>cancelT</code>, the returned cancel function <code>cancelFn</code> will be invoked.</p>
9
+
<p>After a delay of <code>cancelTimeMs</code>, the returned cancel function <code>cancelFn</code> will be invoked.</p>
10
10
11
11
<pre>
12
-
setTimeout(cancelFn, cancelT)
12
+
setTimeout(cancelFn, cancelTimeMs)
13
13
</pre>
14
14
15
15
<p>Initially, the execution of the function <code>fn</code> should be delayed by <code>t</code> milliseconds.</p>
@@ -23,7 +23,7 @@ setTimeout(cancelFn, cancelT)
23
23
<strong>Input:</strong> fn = (x) => x * 5, args = [2], t = 20
The cancellation was scheduled to occur after a delay of cancelT (50ms), which happened before the execution of fn(2) at 100ms, resulting in fn(2) never being called.
57
+
const cancelTimeMs = 50;
58
+
The cancellation was scheduled to occur after a delay of cancelTimeMs (50ms), which happened before the execution of fn(2) at 100ms, resulting in fn(2) never being called.
59
59
</pre>
60
60
61
61
<p><strongclass="example">Example 3:</strong></p>
@@ -64,8 +64,8 @@ The cancellation was scheduled to occur after a delay of cancelT (50ms), which h
Copy file name to clipboardexpand all lines: solution/2700-2799/2725.Interval Cancellation/README_EN.md
+22-16
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@
6
6
7
7
<p>Given a function <code>fn</code>, an array of arguments <code>args</code>, and an interval time <code>t</code>, return a cancel function <code>cancelFn</code>.</p>
8
8
9
-
<p>The function <code>fn</code> should be called with <code>args</code> immediately and then called again every <code>t</code> milliseconds until <code>cancelFn</code> is called at <code>cancelT</code> ms.</p>
9
+
<p>The function <code>fn</code> should be called with <code>args</code> immediately and then called again every <code>t</code> milliseconds until <code>cancelFn</code> is called at <code>cancelTimeMs</code> ms.</p>
10
10
11
11
<p> </p>
12
12
<p><strongclass="example">Example 1:</strong></p>
13
13
14
14
<pre>
15
-
<strong>Input:</strong> fn = (x) => x * 2, args = [4], t = 35, cancelT = 190
15
+
<strong>Input:</strong> fn = (x) => x * 2, args = [4], t = 35
0 commit comments