Skip to content
/ leetcode Public
  • Sponsor doocs/leetcode

  • Notifications You must be signed in to change notification settings
  • Fork 9.1k
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 60799d5

Browse files
committedJun 9, 2025··
feat: update lc problems
1 parent 82583d6 commit 60799d5

File tree

61 files changed

+957
-993
lines changed

Some content is hidden

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

61 files changed

+957
-993
lines changed
 

‎solution/0100-0199/0195.Tenth Line/README_EN.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,41 +23,26 @@ tags:
2323
<p>Assume that <code>file.txt</code> has the following content:</p>
2424

2525
<pre>
26-
2726
Line 1
28-
2927
Line 2
30-
3128
Line 3
32-
3329
Line 4
34-
3530
Line 5
36-
3731
Line 6
38-
3932
Line 7
40-
4133
Line 8
42-
4334
Line 9
44-
4535
Line 10
46-
4736
</pre>
4837

4938
<p>Your script should output the tenth line, which is:</p>
5039

5140
<pre>
52-
5341
Line 10
54-
5542
</pre>
5643

5744
<div class="spoilers"><b>Note:</b><br />
58-
5945
1. If the file contains less than 10 lines, what should you output?<br />
60-
6146
2. There&#39;s at least three different solutions. Try to explore all possibilities.</div>
6247

6348
<!-- description:end -->

‎solution/0700-0799/0799.Champagne Tower/README_EN.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,51 +27,35 @@ tags:
2727
<p>Now after pouring some non-negative integer cups of champagne, return how full the <code>j<sup>th</sup></code> glass in the <code>i<sup>th</sup></code> row is (both <code>i</code> and <code>j</code> are 0-indexed.)</p>
2828

2929
<p>&nbsp;</p>
30-
3130
<p><strong class="example">Example 1:</strong></p>
3231

3332
<pre>
34-
3533
<strong>Input:</strong> poured = 1, query_row = 1, query_glass = 1
36-
3734
<strong>Output:</strong> 0.00000
38-
3935
<strong>Explanation:</strong> We poured 1 cup of champange to the top glass of the tower (which is indexed as (0, 0)). There will be no excess liquid so all the glasses under the top glass will remain empty.
40-
4136
</pre>
4237

4338
<p><strong class="example">Example 2:</strong></p>
4439

4540
<pre>
46-
4741
<strong>Input:</strong> poured = 2, query_row = 1, query_glass = 1
48-
4942
<strong>Output:</strong> 0.50000
50-
5143
<strong>Explanation:</strong> We poured 2 cups of champange to the top glass of the tower (which is indexed as (0, 0)). There is one cup of excess liquid. The glass indexed as (1, 0) and the glass indexed as (1, 1) will share the excess liquid equally, and each will get half cup of champange.
52-
5344
</pre>
5445

5546
<p><strong class="example">Example 3:</strong></p>
5647

5748
<pre>
58-
5949
<strong>Input:</strong> poured = 100000009, query_row = 33, query_glass = 17
60-
6150
<strong>Output:</strong> 1.00000
62-
6351
</pre>
6452

6553
<p>&nbsp;</p>
66-
6754
<p><strong>Constraints:</strong></p>
6855

6956
<ul>
70-
71-
<li><code>0 &lt;=&nbsp;poured &lt;= 10<sup>9</sup></code></li>
72-
73-
<li><code>0 &lt;= query_glass &lt;= query_row&nbsp;&lt; 100</code></li>
74-
57+
<li><code>0 &lt;=&nbsp;poured &lt;= 10<sup>9</sup></code></li>
58+
<li><code>0 &lt;= query_glass &lt;= query_row&nbsp;&lt; 100</code></li>
7559
</ul>
7660

7761
<!-- description:end -->

0 commit comments

Comments
 (0)
Please sign in to comment.