Skip to content

Commit 54aa98d

Browse files
authored
Update README_EN.md
1 parent f098f29 commit 54aa98d

File tree

1 file changed

+0
-23
lines changed
  • solution/1900-1999/1960.Maximum Product of the Length of Two Palindromic Substrings

1 file changed

+0
-23
lines changed

solution/1900-1999/1960.Maximum Product of the Length of Two Palindromic Substrings/README_EN.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ tags:
6666
#### Python3
6767

6868
```python
69-
7069
class Solution:
7170
def maxProduct(self, s: str) -> int:
7271
n = len(s)
@@ -101,14 +100,11 @@ class Solution:
101100
suffix[~i] = max(suffix[~i], suffix[~i + 1])
102101

103102
return max(prefix[i - 1] * suffix[i] for i in range(1, n))
104-
105-
106103
```
107104

108105
#### Java
109106

110107
```java
111-
112108
class Solution {
113109
public long maxProduct(String s) {
114110
int n = s.length();
@@ -162,13 +158,11 @@ class Solution {
162158
return P;
163159
}
164160
}
165-
166161
```
167162

168163
#### C++
169164

170165
```cpp
171-
172166
class Solution {
173167
public:
174168
long long maxProduct(string s) {
@@ -206,13 +200,11 @@ public:
206200
return res;
207201
}
208202
};
209-
210203
```
211204

212205
#### Go
213206

214207
```go
215-
216208
func maxProduct(s string) int64 {
217209
n := len(s)
218210
hlen := make([]int, n)
@@ -270,21 +262,6 @@ func maxProduct(s string) int64 {
270262

271263
return res
272264
}
273-
274-
func max(a, b int) int {
275-
if a > b {
276-
return a
277-
}
278-
return b
279-
}
280-
281-
func min(a, b int) int {
282-
if a < b {
283-
return a
284-
}
285-
return b
286-
}
287-
288265
```
289266

290267
<!-- tabs:end -->

0 commit comments

Comments
 (0)