update 1143.最长公共子序列:添加复杂度分析

This commit is contained in:
Yuhao Ju 2023-04-11 14:11:04 +08:00 committed by GitHub
parent 5bc0fa5c96
commit 1ed179e233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,10 @@ public:
}
};
```
* 时间复杂度: O(n * m),其中 n 和 m 分别为 text1 和 text2 的长度
* 空间复杂度: O(n * m)
## 其他语言版本