Skip to content

Commit 8416477

Browse files
authored
Update 765._Couples_Holding_Hands.md
1 parent 492e6f7 commit 8416477

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/Leetcode_Solutions/Python/765._Couples_Holding_Hands.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ class Solution:
9999
> 思路 2
100100
******- 时间复杂度: O(N)******- 空间复杂度: O(N)******
101101

102-
看完上面的思路,发现直接用贪心就可以,就是直接从头到尾遍历,没配对成功就立马配对,执行相应swap操作
102+
看完上面的思路,发现直接用贪心就可以,就是直接从头到尾遍历,没配对成功就立马配对,执行相应swap操作.
103+
104+
因为每一次这样的swap都至少增加了一个connected component
103105

104106
beats 34.83%
105107

0 commit comments

Comments
 (0)