Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ countPali
Method
countPali
python/0647-palindromic-substrings.py:10–16 ·
view source on GitHub ↗
(self, s, l, r)
Source
from the content-addressed store, hash-verified
8
return
res
9
10
def
countPali(self, s, l, r):
11
res = 0
12
while
l >= 0 and r < len(s) and s[l] == s[r]:
13
res += 1
14
l -= 1
15
r += 1
16
return
res
Callers
1
countSubstrings
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected