k-palindrome scheme code code example
Example: k palindrome
public static int longestPalindrome(String s){
int len = s.length();
int[][] cal = new int[len][len];
for(int i=0;i=0; p--){
for(int q=p+2; q
public static int longestPalindrome(String s){
int len = s.length();
int[][] cal = new int[len][len];
for(int i=0;i=0; p--){
for(int q=p+2; q