@@ -0,0 +1,1177 @@
+package com.dw.leetcode;%0A%0A//@example: Leetcode - 125. Valid Palindrome - https://leetcode.com/problems/valid-palindrome/#/description%0Apublic class Valid_Palindrome_125 %7B%0A%09%0A%09public boolean isPalindrome(String s) %7B%0A        boolean result = true;%0A        %0A        if(s.length() == 0 %7C%7C s.length() == 1) return result;%0A        %0A        StringBuilder sb = new StringBuilder();%0A        %0A        for(int i=0;i%3Cs.length();i++) %7B%0A        %09if(Character.isAlphabetic(s.charAt(i)) %7C%7C Character.isDigit(s.charAt(i))) %7B%0A        %09%09sb.append(Character.toLowerCase(s.charAt(i)));%0A        %09%7D%0A        %7D%0A        String pa = sb.toString();%0A        if(pa.length() == 0 %7C%7C pa.length() == 1) return result;%0A        %0A        for(int i=0;i%3C=pa.length()/2;i++) %7B%0A        %09if(pa.charAt(i) != pa.charAt(pa.length() - 1 - i)) %7B%0A        %09%09result = false;%0A        %09%09break;%0A        %09%7D%0A        %7D%0A        %0A        return result;%0A    %7D%0A%09%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09Valid_Palindrome_125 s= new Valid_Palindrome_125();%0A%09%09%0A%09%09System.out.println(s.isPalindrome(%22A man, a plan, a canal: Panama%22));%0A%09%09//%22race a car%22%0A%09%09System.out.println(s.isPalindrome(%220P%22));%0A%09%7D%0A%0A%7D%0A

add leetcode 125