Skip to content

Commit 77e6126

Browse files
committed
style: update problems description
1 parent 4bfc92d commit 77e6126

File tree

232 files changed

+0
-920
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+0
-920
lines changed

index.html

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
'/','/solution/','/lcof/','/lcci/', '/basic/'
3737
],
3838
auto2top: true,
39-
loadSidebar: 'summary.md',
4039
subMaxLevel: 2,
4140
alias: {
4241
'/lcci/.*/summary.md': '/lcci/summary.md',

solution/0000-0099/0020.Valid Parentheses/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@
99
<p>An input string is valid if:</p>
1010

1111
<ol>
12-
1312
<li>Open brackets must be closed by the same type of brackets.</li>
14-
1513
<li>Open brackets must be closed in the correct order.</li>
16-
1714
</ol>
1815

1916
<p>Note that an empty string is&nbsp;also considered valid.</p>

solution/0000-0099/0036.Valid Sudoku/README_EN.md

-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@
77
<p>Determine if a&nbsp;9x9 Sudoku board&nbsp;is valid.&nbsp;Only the filled cells need to be validated&nbsp;<strong>according to the following rules</strong>:</p>
88

99
<ol>
10-
1110
<li>Each row&nbsp;must contain the&nbsp;digits&nbsp;<code>1-9</code> without repetition.</li>
12-
1311
<li>Each column must contain the digits&nbsp;<code>1-9</code>&nbsp;without repetition.</li>
14-
1512
<li>Each of the 9 <code>3x3</code> sub-boxes of the grid must contain the digits&nbsp;<code>1-9</code>&nbsp;without repetition.</li>
16-
1713
</ol>
1814

1915
<p><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Sudoku-by-L2G-20050714.svg/250px-Sudoku-by-L2G-20050714.svg.png" style="height:250px; width:250px" /><br />

solution/0000-0099/0037.Sudoku Solver/README_EN.md

-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@
99
<p>A&nbsp;sudoku solution must satisfy <strong>all of&nbsp;the following rules</strong>:</p>
1010

1111
<ol>
12-
1312
<li>Each of the digits&nbsp;<code>1-9</code> must occur exactly&nbsp;once in each row.</li>
14-
1513
<li>Each of the digits&nbsp;<code>1-9</code>&nbsp;must occur&nbsp;exactly once in each column.</li>
16-
1714
<li>Each of the the digits&nbsp;<code>1-9</code> must occur exactly once in each of the 9 <code>3x3</code> sub-boxes of the grid.</li>
18-
1915
</ol>
2016

2117
<p>Empty cells are indicated by the character <code>&#39;.&#39;</code>.</p>

solution/0000-0099/0043.Multiply Strings/README_EN.md

-5
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,10 @@
2727
<p><strong>Note:</strong></p>
2828

2929
<ol>
30-
3130
<li>The length of both <code>num1</code> and <code>num2</code> is &lt; 110.</li>
32-
3331
<li>Both <code>num1</code> and <code>num2</code> contain&nbsp;only digits <code>0-9</code>.</li>
34-
3532
<li>Both <code>num1</code> and <code>num2</code>&nbsp;do not contain any leading zero, except the number 0 itself.</li>
36-
3733
<li>You <strong>must not use any built-in BigInteger library</strong> or <strong>convert the inputs to integer</strong> directly.</li>
38-
3934
</ol>
4035

4136
## Solutions

solution/0000-0099/0060.Permutation Sequence/README_EN.md

-7
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,12 @@
99
<p>By listing and labeling all of the permutations in order, we get the following sequence for <em>n</em> = 3:</p>
1010

1111
<ol>
12-
1312
<li><code>&quot;123&quot;</code></li>
14-
1513
<li><code>&quot;132&quot;</code></li>
16-
1714
<li><code>&quot;213&quot;</code></li>
18-
1915
<li><code>&quot;231&quot;</code></li>
20-
2116
<li><code>&quot;312&quot;</code></li>
22-
2317
<li><code>&quot;321&quot;</code></li>
24-
2518
</ol>
2619

2720
<p>Given <em>n</em> and <em>k</em>, return the <em>k</em><sup>th</sup> permutation sequence.</p>

solution/0000-0099/0072.Edit Distance/README_EN.md

-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@
99
<p>You have the following 3 operations permitted on a word:</p>
1010

1111
<ol>
12-
1312
<li>Insert a character</li>
14-
1513
<li>Delete a character</li>
16-
1714
<li>Replace a character</li>
18-
1915
</ol>
2016

2117
<p><strong>Example 1:</strong></p>

solution/0100-0199/0165.Compare Version Numbers/README_EN.md

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ If <code><em>version1</em> &gt; <em>version2</em></code> return <code>1;</code>&
6969
<ol>
7070

7171
<li>Version strings are composed of numeric strings separated by dots <code>.</code> and this numeric strings <strong>may</strong> have leading zeroes. </li>
72-
7372
<li>Version strings do not start or end with dots, and they will not be two consecutive dots.</li>
7473

7574
</ol>

solution/0100-0199/0192.Word Frequency/README_EN.md

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ day 1
4545
<ul>
4646
<li>Don&#39;t worry about handling ties, it is guaranteed that each word&#39;s frequency count is unique.</li>
4747
<li>Could you write it in one-line using <a href="http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-4.html">Unix pipes</a>?</li>
48-
4948
</ul>
5049

5150
## Solutions

solution/0200-0299/0210.Course Schedule II/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,8 @@
4141
<p><strong>Note:</strong></p>
4242

4343
<ol>
44-
4544
<li>The input prerequisites is a graph represented by <strong>a list of edges</strong>, not adjacency matrices. Read more about <a href="https://www.khanacademy.org/computing/computer-science/algorithms/graph-representation/a/representing-graphs" target="_blank">how a graph is represented</a>.</li>
46-
4745
<li>You may assume that there are no duplicate edges in the input prerequisites.</li>
48-
4946
</ol>
5047

5148
## Solutions

solution/0200-0299/0212.Word Search II/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,8 @@
4141
<p><b>Note:</b></p>
4242

4343
<ol>
44-
4544
<li>All inputs are consist of lowercase letters <code>a-z</code>.</li>
46-
4745
<li>The values of&nbsp;<code>words</code> are distinct.</li>
48-
4946
</ol>
5047

5148
## Solutions

solution/0200-0299/0260.Single Number III/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@
1717
<p><b>Note</b>:</p>
1818

1919
<ol>
20-
2120
<li>The order of the result is not important. So in the above example, <code>[5, 3]</code> is also correct.</li>
22-
2321
<li>Your algorithm should run in linear runtime complexity. Could you implement it using only constant space complexity?</li>
24-
2522
</ol>
2623

2724
## Solutions

solution/0200-0299/0263.Ugly Number/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,8 @@
4545
<p><strong>Note:</strong></p>
4646

4747
<ol>
48-
4948
<li><code>1</code> is typically treated as an ugly number.</li>
50-
5149
<li>Input is within the 32-bit signed integer range:&nbsp;[&minus;2<sup>31</sup>,&nbsp; 2<sup>31&nbsp;</sup>&minus; 1].</li>
52-
5350
</ol>
5451

5552
## Solutions

solution/0200-0299/0264.Ugly Number II/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@
2121
<p><strong>Note: </strong>&nbsp;</p>
2222

2323
<ol>
24-
2524
<li><code>1</code> is typically treated as an ugly number.</li>
26-
2725
<li><code>n</code> <b>does not exceed 1690</b>.</li>
28-
2926
</ol>
3027

3128
## Solutions

solution/0200-0299/0283.Move Zeroes/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@
1717
<p><b>Note</b>:</p>
1818

1919
<ol>
20-
2120
<li>You must do this <b>in-place</b> without making a copy of the array.</li>
22-
2321
<li>Minimize the total number of operations.</li>
24-
2522
</ol>
2623

2724
## Solutions

solution/0200-0299/0287.Find the Duplicate Number/README_EN.md

-5
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,10 @@
2727
<p><b>Note:</b></p>
2828

2929
<ol>
30-
3130
<li>You <b>must not</b> modify the array (assume the array is read only).</li>
32-
3331
<li>You must use only constant, <i>O</i>(1) extra space.</li>
34-
3532
<li>Your runtime complexity should be less than <em>O</em>(<em>n</em><sup>2</sup>).</li>
36-
3733
<li>There is only one duplicate number in the array, but it could be repeated more than once.</li>
38-
3934
</ol>
4035

4136
## Solutions

solution/0200-0299/0289.Game of Life/README_EN.md

-5
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,10 @@
99
<p>Given a <i>board</i> with <i>m</i> by <i>n</i> cells, each cell has an initial state <i>live</i> (1) or <i>dead</i> (0). Each cell interacts with its <a href="https://en.wikipedia.org/wiki/Moore_neighborhood" target="_blank">eight neighbors</a> (horizontal, vertical, diagonal) using the following four rules (taken from the above Wikipedia article):</p>
1010

1111
<ol>
12-
1312
<li>Any live cell with fewer than two live neighbors dies, as if caused by under-population.</li>
14-
1513
<li>Any live cell with two or three live neighbors lives on to the next generation.</li>
16-
1714
<li>Any live cell with more than three live neighbors dies, as if by over-population..</li>
18-
1915
<li>Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.</li>
20-
2116
</ol>
2217

2318
<p>Write a function to compute the next state (after one update) of the board given its current state.&nbsp;<span>The next state is created by applying the above rules simultaneously to every cell in the current state, where&nbsp;births and deaths occur simultaneously.</span></p>

solution/0200-0299/0295.Find Median from Data Stream/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,8 @@ findMedian() -&gt; 2
4242
<p><strong>Follow up:</strong></p>
4343

4444
<ol>
45-
4645
<li>If all integer numbers from the stream are between 0&nbsp;and 100, how would you optimize it?</li>
47-
4846
<li>If 99% of all integer numbers from the stream are between 0 and 100, how would you optimize it?</li>
49-
5047
</ol>
5148

5249
## Solutions

solution/0300-0399/0307.Range Sum Query - Mutable/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@ sumRange(0, 2) -&gt; 8
2727
<p><b>Note:</b></p>
2828

2929
<ol>
30-
3130
<li>The array is only modifiable by the <i>update</i> function.</li>
32-
3331
<li>You may assume the number of calls to <i>update</i> and <i>sumRange</i> function is distributed evenly.</li>
34-
3532
</ol>
3633

3734
## Solutions

solution/0300-0399/0332.Reconstruct Itinerary/README_EN.md

-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@
99
<p><b>Note:</b></p>
1010

1111
<ol>
12-
1312
<li>If there are multiple valid itineraries, you should return the itinerary that has the smallest lexical order when read as a single string. For example, the itinerary <code>[&quot;JFK&quot;, &quot;LGA&quot;]</code> has a smaller lexical order than <code>[&quot;JFK&quot;, &quot;LGB&quot;]</code>.</li>
14-
1513
<li>All airports are represented by three capital letters (IATA code).</li>
16-
1714
<li>You may assume all tickets form at least one valid itinerary.</li>
18-
1915
</ol>
2016

2117
<p><b>Example 1:</b></p>

solution/0300-0399/0363.Max Sum of Rectangle No Larger Than K/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@
2121
<p><b>Note:</b></p>
2222

2323
<ol>
24-
2524
<li>The rectangle inside the matrix must have an area &gt; 0.</li>
26-
2725
<li>What if the number of rows is much larger than the number of columns?</li>
28-
2926
</ol>
3027

3128
## Solutions

solution/0400-0499/0416.Partition Equal Subset Sum/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@
99
<p><b>Note:</b></p>
1010

1111
<ol>
12-
1312
<li>Each of the array element will not exceed 100.</li>
14-
1513
<li>The array size will not exceed 200.</li>
16-
1714
</ol>
1815

1916
<p>&nbsp;</p>

solution/0400-0499/0417.Pacific Atlantic Water Flow/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@
1313
<p><b>Note:</b></p>
1414

1515
<ol>
16-
1716
<li>The order of returned grid coordinates does not matter.</li>
18-
1917
<li>Both <i>m</i> and <i>n</i> are less than 150.</li>
20-
2118
</ol>
2219

2320
<p>&nbsp;</p>

solution/0400-0499/0433.Minimum Genetic Mutation/README_EN.md

-4
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,9 @@
1717
<p><b>Note:</b></p>
1818

1919
<ol>
20-
2120
<li>Starting point is assumed to be valid, so it might not be included in the bank.</li>
22-
2321
<li>If multiple mutations are needed, all mutations during in the sequence must be valid.</li>
24-
2522
<li>You may assume start and end string is not the same.</li>
26-
2723
</ol>
2824

2925
<p>&nbsp;</p>

solution/0400-0499/0436.Find Right Interval/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@
1111
<p><b>Note:</b></p>
1212

1313
<ol>
14-
1514
<li>You may assume the interval&#39;s end point is always bigger than its start point.</li>
16-
1715
<li>You may assume none of these intervals have the same start point.</li>
18-
1916
</ol>
2017

2118
<p>&nbsp;</p>

solution/0400-0499/0443.String Compression/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,8 @@ Notice each digit has it&#39;s own entry in the array.
9797
<p><b>Note:</b></p>
9898

9999
<ol>
100-
101100
<li>All characters have an ASCII value in <code>[35, 126]</code>.</li>
102-
103101
<li><code>1 &lt;= len(chars) &lt;= 1000</code>.</li>
104-
105102
</ol>
106103

107104
## Solutions

solution/0400-0499/0457.Circular Array Loop/README_EN.md

-4
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,9 @@
4949
<p><b>Note:</b></p>
5050

5151
<ol>
52-
5352
<li>-1000 &le;&nbsp;nums[i] &le;&nbsp;1000</li>
54-
5553
<li>nums[i] &ne;&nbsp;0</li>
56-
5754
<li>1 &le;&nbsp;nums.length &le; 5000</li>
58-
5955
</ol>
6056

6157
<p>&nbsp;</p>

solution/0400-0499/0458.Poor Pigs/README_EN.md

-4
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,9 @@
1919
<p><strong>Note:</strong></p>
2020

2121
<ol>
22-
2322
<li>A pig can be allowed to drink simultaneously on as many buckets as one would like, and the feeding takes no time.</li>
24-
2523
<li>After a pig has instantly finished drinking buckets, there has to be a <strong>cool down time</strong> of <em>m&nbsp;</em>minutes. During this time, only observation is allowed and no feedings at all.</li>
26-
2724
<li>Any given bucket can be sampled an infinite number of times (by an unlimited number of pigs).</li>
28-
2925
</ol>
3026

3127
## Solutions

solution/0400-0499/0470.Implement Rand10() Using Rand7()/README_EN.md

-6
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,17 @@
5555
<p><strong>Note:</strong></p>
5656

5757
<ol>
58-
5958
<li><code>rand7</code> is predefined.</li>
60-
6159
<li>Each testcase has one argument:&nbsp;<code>n</code>, the number of times that <code>rand10</code> is called.</li>
62-
6360
</ol>
6461

6562
<p>&nbsp;</p>
6663

6764
<p><strong>Follow up:</strong></p>
6865

6966
<ol>
70-
7167
<li>What is the <a href="https://en.wikipedia.org/wiki/Expected_value" target="_blank">expected value</a>&nbsp;for the number of calls to&nbsp;<code>rand7()</code>&nbsp;function?</li>
72-
7368
<li>Could you minimize the number of calls to <code>rand7()</code>?</li>
74-
7569
</ol>
7670

7771
</div>

solution/0400-0499/0474.Ones and Zeroes/README_EN.md

-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@
1313
<p><b>Note:</b></p>
1414

1515
<ol>
16-
1716
<li>The given numbers of <code>0s</code> and <code>1s</code> will both not exceed <code>100</code></li>
18-
1917
<li>The size of given string array won&#39;t exceed <code>600</code>.</li>
20-
2118
</ol>
2219

2320
<p>&nbsp;</p>

0 commit comments

Comments
 (0)