Skip to content

Commit 3c449d1

Browse files
committed
deploy: 2e398c6
1 parent fca73e4 commit 3c449d1

File tree

6 files changed

+73
-201
lines changed

6 files changed

+73
-201
lines changed

en/lc/2225/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75871,7 +75871,7 @@ <h3 id="solution-1-hash-table-sorting">Solution 1: Hash Table + Sorting</h3>
7587175871
<p>We use a hash table <code>cnt</code> to record the number of matches each player has lost.</p>
7587275872
<p>Then we traverse the hash table, put the players who lost 0 matches into <code>ans[0]</code>, and put the players who lost 1 match into <code>ans[1]</code>.</p>
7587375873
<p>Finally, we sort <code>ans[0]</code> and <code>ans[1]</code> in ascending order and return the result.</p>
75874-
<p>The time complexity is $O(n)$, and the space complexity is $O(n)$. Where $n$ is the number of matches.</p>
75874+
<p>The time complexity is $O(n \times \log n)$, and the space complexity is $O(n)$. Where $n$ is the number of matches.</p>
7587575875
<div class="tabbed-set tabbed-alternate" data-tabs="1:6"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><input id="__tabbed_1_3" name="__tabbed_1" type="radio" /><input id="__tabbed_1_4" name="__tabbed_1" type="radio" /><input id="__tabbed_1_5" name="__tabbed_1" type="radio" /><input id="__tabbed_1_6" name="__tabbed_1" type="radio" /><div class="tabbed-labels"><label for="__tabbed_1_1">Python3</label><label for="__tabbed_1_2">Java</label><label for="__tabbed_1_3">C++</label><label for="__tabbed_1_4">Go</label><label for="__tabbed_1_5">TypeScript</label><label for="__tabbed_1_6">JavaScript</label></div>
7587675876
<div class="tabbed-content">
7587775877
<div class="tabbed-block">

en/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lc/2225/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80473,7 +80473,7 @@ <h3 id="_3">方法一:哈希表 + 排序</h3>
8047380473
<p>我们用一个哈希表 $\text{cnt}$ 记录每个玩家输掉的比赛场次。</p>
8047480474
<p>然后遍历哈希表,将输掉 $0$ 场比赛的玩家放入 $\text{ans}[0]$,将输掉 $1$ 场比赛的玩家放入 $\text{ans}[1]$。</p>
8047580475
<p>最后将 $\text{ans}[0]$ 和 $\text{ans}[1]$ 按照升序排序,返回结果。</p>
80476-
<p>时间复杂度 $O(n)$,空间复杂度 $O(n)$。其中 $n$ 为比赛场次数。</p>
80476+
<p>时间复杂度 $O(n \times \log n)$,空间复杂度 $O(n)$。其中 $n$ 为比赛场次数。</p>
8047780477
<div class="tabbed-set tabbed-alternate" data-tabs="1:6"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><input id="__tabbed_1_3" name="__tabbed_1" type="radio" /><input id="__tabbed_1_4" name="__tabbed_1" type="radio" /><input id="__tabbed_1_5" name="__tabbed_1" type="radio" /><input id="__tabbed_1_6" name="__tabbed_1" type="radio" /><div class="tabbed-labels"><label for="__tabbed_1_1">Python3</label><label for="__tabbed_1_2">Java</label><label for="__tabbed_1_3">C++</label><label for="__tabbed_1_4">Go</label><label for="__tabbed_1_5">TypeScript</label><label for="__tabbed_1_6">JavaScript</label></div>
8047880478
<div class="tabbed-content">
8047980479
<div class="tabbed-block">

0 commit comments

Comments
 (0)