Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5974c82

Browse files
Merge pull request youngyangyang04#2143 from Logenleedev/master
修改复杂度 - 047 全排列 II
2 parents 270394b + 080dd35 commit 5974c82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎problems/0047.全排列II.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public:
101101
// 时间复杂度: 最差情况所有元素都是唯一的。复杂度和全排列1都是 O(n! * n) 对于 n 个元素一共有 n! 中排列方案。而对于每一个答案,我们需要 O(n) 去复制最终放到 result 数组
102102
// 空间复杂度: O(n) 回溯树的深度取决于我们有多少个元素
103103
```
104-
* 时间复杂度: O(n)
104+
* 时间复杂度: O(n! * n)
105105
* 空间复杂度: O(n)
106106
107107
## 拓展

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /