Skip to content

Commit cd21345

Browse files
committed
修正内容错误
1 parent 9b65c86 commit cd21345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/solutions/1600-1699/path-with-minimum-effort.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ class Solution:
120120

121121
### 思路 1:复杂度分析
122122

123-
- **时间复杂度**:$O(m \times n \times \alpha(m \times n))$,其中 $\alpha$ 是反 Ackerman 函数
123+
- **时间复杂度**:$O(m \times n \times \log(m \times n))$,其中 $m$ 和 $n$ 分别为矩阵的行数和列数。主要耗时在于对所有边进行排序,排序复杂度为 $O(m \times n \times \log(m \times n))$,并查集的合并与查找操作均摊为常数级
124124
- **空间复杂度**:$O(m \times n)$。
125125

0 commit comments

Comments
 (0)