Skip to content

Commit cf0f817

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Leetcode_Solutions/Python/765._Couples_Holding_Hands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class Solution:
101101

102102
看完上面的思路,发现直接用贪心就可以,就是直接从头到尾遍历,没配对成功就立马配对,执行相应swap操作.
103103

104-
因为每一次这样的swap都至少增加了一个connected component
104+
因为每一次这样的swap都至少增加了一个connected component,所以肯定是最优的
105105

106106
beats 34.83%
107107

0 commit comments

Comments
 (0)