Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/qiyuangong/leetcode
/ isPalindrome
Method
isPalindrome
java/336_Palindrome_Pairs.java:66–72 ·
view source on GitHub ↗
(String word, int i, int j)
Source
from the content-addressed store, hash-verified
64
}
65
66
private
boolean isPalindrome(String word,
int
i,
int
j) {
67
while
(i < j) {
68
if
(word.charAt(i++) != word.charAt(j--))
return
false;
69
}
70
71
return
true;
72
}
73
}
Callers
2
addWord
Method · 0.95
search
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected