Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ validPalindromeUtil
Method
validPalindromeUtil
java/0680-valid-palindrome-ii.java:13–23 ·
view source on GitHub ↗
(String s, int i, int j)
Source
from the content-addressed store, hash-verified
11
}
12
13
boolean validPalindromeUtil(String s,
int
i,
int
j) {
14
while
(i < j)
15
if
(s.charAt(i) == s.charAt(j)) {
16
i += 1;
17
j -= 1;
18
}
else
{
19
return
false;
20
}
21
22
return
true;
23
}
24
}
Callers
1
validPalindrome
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected