Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ isPalindrome
Function
isPalindrome
javascript/0005-longest-palindromic-substring.js:41–41 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
39
const
isSame = () => s[left] === s[right];
40
41
const
isPalindrome = () => canExpand() && isSame();
42
while
(isPalindrome()) {
43
left--;
44
right++;
Callers
1
getLength
Function · 0.70
Calls
2
canExpand
Function · 0.85
isSame
Function · 0.70
Tested by
no test coverage detected