最长回文子序列递归的复杂度
时间: 2023-11-05 20:17:51 浏览: 176
lpalindrome:最长回文子序列
最长回文子序列的递归复杂度是O(n^2)。这是因为在求解最长回文子序列的过程中,涉及到对每一个子序列进行判断和计算,而子序列的长度为n。因此,总的时间复杂度为O(n^2)。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [LeetCode:516 最长回文子序列](https://blog.csdn.net/chengda321/article/details/104523971)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [516、最长回文子序列](https://blog.csdn.net/pengchengliu/article/details/92764961)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [西电算法课程期末复习资料.zip](https://download.csdn.net/download/qq_42475914/12732528)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文