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/0600-0699/0648.Replace Words/README_EN.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,9 @@ tags:
19
19
20
20
<!-- description:start -->
21
21
22
-
<p>In English, we have a concept called <strong>root</strong>, which can be followed by some other word to form another longer word - let's call this word <strong>successor</strong>. For example, when the <strong>root</strong> <code>"help"</code> is followed by the <strong>successor</strong> word <code>"ful"</code>, we can form a new word <code>"helpful"</code>.</p>
22
+
<p>In English, we have a concept called <strong>root</strong>, which can be followed by some other word to form another longer word - let's call this word <strong>derivative</strong>. For example, when the <strong>root</strong> <code>"help"</code> is followed by the word <code>"ful"</code>, we can form a derivative <code>"helpful"</code>.</p>
23
23
24
-
<p>Given a <code>dictionary</code> consisting of many <strong>roots</strong> and a <code>sentence</code> consisting of words separated by spaces, replace all the <strong>successors</strong> in the sentence with the <strong>root</strong> forming it. If a <strong>successor</strong> can be replaced by more than one <strong>root</strong>, replace it with the <strong>root</strong> that has <strong>the shortest length</strong>.</p>
24
+
<p>Given a <code>dictionary</code> consisting of many <strong>roots</strong> and a <code>sentence</code> consisting of words separated by spaces, replace all the derivatives in the sentence with the <strong>root</strong> forming it. If a derivative can be replaced by more than one <strong>root</strong>, replace it with the <strong>root</strong> that has <strong>the shortest length</strong>.</p>
25
25
26
26
<p>Return <em>the <code>sentence</code></em> after the replacement.</p>
Copy file name to clipboardexpand all lines: solution/0800-0899/0852.Peak Index in a Mountain Array/README_EN.md
+18-25
Original file line number
Diff line number
Diff line change
@@ -17,43 +17,36 @@ tags:
17
17
18
18
<!-- description:start -->
19
19
20
-
<p>An array <code>arr</code> is a <strong>mountain</strong> if the following properties hold:</p>
20
+
<p>You are given an integer <strong>mountain</strong> array <code>arr</code> of length <code>n</code> where the values increase to a <strong>peak element</strong> and then decrease.</p>
21
21
22
-
<ul>
23
-
<li><code>arr.length >= 3</code></li>
24
-
<li>There exists some <code>i</code> with <code>0 < i < arr.length - 1</code> such that:
Copy file name to clipboardexpand all lines: solution/2000-2099/2061.Number of Spaces Cleaning Robot Cleaned/README_EN.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ tags:
22
22
23
23
<p>A cleaning robot starts at the top left corner of the room and is facing right. The robot will continue heading straight until it reaches the edge of the room or it hits an object, after which it will turn 90 degrees <strong>clockwise</strong> and repeat this process. The starting space and all spaces that the robot visits are <strong>cleaned</strong> by it.</p>
24
24
25
-
<p>Return <em>the number of <strong>clean</strong> spaces in the room if the robot runs indefinetely.</em></p>
25
+
<p>Return <em>the number of <strong>clean</strong> spaces in the room if the robot runs indefinitely.</em></p>
0 commit comments