Domanda di colloquio di Amazon

Write a function in java to calculate all the possible palindromes in a string.

Risposte di colloquio

Anonimo

1 feb 2012

Simple calculate all the possible substrings, and write a helper method to check if each substring is a palindrome.

1

Anonimo

4 feb 2012

Please see the link here . It has the explanation and code for the problem http://www.nobrainer.co.cc/2012/02/find-all-palindromes-in-given-string.html

1