Skip to content

Instantly share code, notes, and snippets.

View Coffeegerm's full-sized avatar
🦥

David Yarzebinski Coffeegerm

🦥
View GitHub Profile
public boolean palindrome(String string)
{
return isPal(string, 0, string.length() - 1);
}
private boolean isPal(String string, int left, int right)
{
if (left >= right)
{
return true;