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/0400-0499/0409.Longest Palindrome/README_EN.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,9 @@ tags:
18
18
19
19
<!-- description:start -->
20
20
21
-
<p>Given a string <code>s</code> which consists of lowercase or uppercase letters, return <em>the length of the <strong>longest palindrome</strong></em> that can be built with those letters.</p>
21
+
<p>Given a string <code>s</code> which consists of lowercase or uppercase letters, return the length of the <strong>longest <spandata-keyword="palindrome-string">palindrome</span></strong> that can be built with those letters.</p>
22
22
23
-
<p>Letters are <strong>case sensitive</strong>, for example, <code>"Aa"</code> is not considered a palindrome here.</p>
23
+
<p>Letters are <strong>case sensitive</strong>, for example,<code>"Aa"</code> is not considered a palindrome.</p>
Copy file name to clipboardexpand all lines: solution/2800-2899/2856.Minimum Array Length After Pair Removals/README_EN.md
+42-33
Original file line number
Diff line number
Diff line change
@@ -23,56 +23,65 @@ tags:
23
23
24
24
<!-- description:start -->
25
25
26
-
<p>You are given a <strong>0-indexed</strong> <strong>sorted</strong> array of integers <code>nums</code>.</p>
26
+
<p>Given an integer array <code>num</code> sorted in non-decreasing order.</p>
27
27
28
28
<p>You can perform the following operation any number of times:</p>
29
29
30
30
<ul>
31
-
<li>Choose <strong>two</strong> indices, <code>i</code> and <code>j</code>, where <code>i < j</code>, such that <code>nums[i] < nums[j]</code>.</li>
31
+
<li>Choose <strong>two</strong> indices, <code>i</code> and <code>j</code>, where <code>nums[i] < nums[j]</code>.</li>
32
32
<li>Then, remove the elements at indices <code>i</code> and <code>j</code> from <code>nums</code>. The remaining elements retain their original order, and the array is re-indexed.</li>
33
33
</ul>
34
34
35
-
<p>Return <em>an integer that denotes the <strong>minimum</strong> length of </em><code>nums</code><em> after performing the operation any number of times (<strong>including zero</strong>).</em></p>
36
-
37
-
<p>Note that <code>nums</code> is sorted in <strong>non-decreasing</strong> order.</p>
35
+
<p>Return the <strong>minimum</strong> length of <code>nums</code> after applying the operation zero or more times.</p>
Copy file name to clipboardexpand all lines: solution/2900-2999/2956.Find Common Elements Between Two Arrays/README_EN.md
+36-18
Original file line number
Diff line number
Diff line change
@@ -19,35 +19,53 @@ tags:
19
19
20
20
<!-- description:start -->
21
21
22
-
<p>You are given two <strong>0-indexed</strong> integer arrays <code>nums1</code> and <code>nums2</code> of sizes <code>n</code> and <code>m</code>, respectively.</p>
23
-
24
-
<p>Consider calculating the following values:</p>
22
+
<p>You are given two integer arrays <code>nums1</code> and <code>nums2</code> of sizes <code>n</code> and <code>m</code>, respectively. Calculate the following values:</p>
25
23
26
24
<ul>
27
-
<li>The number of indices <code>i</code> such that <code>0 <= i < n</code> and <code>nums1[i]</code> occurs <strong>at least</strong> once in <code>nums2</code>.</li>
28
-
<li>The number of indices <code>i</code> such that <code>0 <= i < m</code> and <code>nums2[i]</code> occurs <strong>at least</strong> once in <code>nums1</code>.</li>
25
+
<li><code>answer1</code> : the number of indices <code>i</code> such that <code>nums1[i]</code> exists in <code>nums2</code>.</li>
26
+
<li><code>answer2</code> : the number of indices <code>i</code> such that <code>nums2[i]</code> exists in <code>nums1</code>.</li>
29
27
</ul>
30
28
31
-
<p>Return <em>an integer array </em><code>answer</code><em> of size </em><code>2</code><em> containing the two values <strong>in the above order</strong></em>.</p>
0 commit comments