Skip to content

Commit b8613fb

Browse files
authored
Update solution.ts
1 parent bb470bd commit b8613fb

File tree

1 file changed

+0
-2
lines changed
  • src/main/ts/g0601_0700/s0647_palindromic_substrings

1 file changed

+0
-2
lines changed

src/main/ts/g0601_0700/s0647_palindromic_substrings/solution.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ function expand(a: string[], l: number, r: number, res: number[]): void {
1616
function countSubstrings(s: string): number {
1717
const a: string[] = s.split('')
1818
const res: number[] = [0]
19-
2019
for (let i = 0; i < a.length; i++) {
2120
expand(a, i, i, res)
2221
expand(a, i, i + 1, res)
2322
}
24-
2523
return res[0]
2624
}
2725

0 commit comments

Comments
 (0)