更新 0516.最长回文子序列 0647.回文子串 动态规划总结 排版格式修复

This commit is contained in:
jinbudaily
2023-07-26 16:25:35 +08:00
parent a0edc60d1f
commit 4760924db0
3 changed files with 20 additions and 15 deletions

View File

@@ -152,8 +152,7 @@ public:
## 其他语言版本
Java
### Java
```java
public class Solution {
@@ -175,8 +174,7 @@ public class Solution {
}
```
Python
### Python
```python
class Solution:
@@ -193,7 +191,7 @@ class Solution:
return dp[0][-1]
```
Go
### Go
```Go
func longestPalindromeSubseq(s string) int {
@@ -222,7 +220,7 @@ func longestPalindromeSubseq(s string) int {
}
```
Javascript
### Javascript
```javascript
const longestPalindromeSubseq = (s) => {
@@ -247,7 +245,7 @@ const longestPalindromeSubseq = (s) => {
};
```
TypeScript
### TypeScript
```typescript
function longestPalindromeSubseq(s: string): number {
@@ -281,3 +279,4 @@ function longestPalindromeSubseq(s: string): number {
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a>