MCPcopy 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

getLengthFunction · 0.70

Calls 2

canExpandFunction · 0.85
isSameFunction · 0.70

Tested by

no test coverage detected