mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 16:54:50 +08:00
update 0078.子集:添加复杂度分析
This commit is contained in:
@ -149,6 +149,8 @@ public:
|
||||
};
|
||||
|
||||
```
|
||||
* 时间复杂度: O(n * 2^n)
|
||||
* 空间复杂度: O(n)
|
||||
|
||||
在注释中,可以发现可以不写终止条件,因为本来我们就要遍历整棵树。
|
||||
|
||||
|
Reference in New Issue
Block a user