MCPcopy 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

addWordMethod · 0.95
searchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected