You are viewing a single comment's thread. Return to all comments →
I don't think that the test cases are correct. For the second test case:
abab 1 1 4
The right answer according to HackerRank is 2. But I think that the right answer is 4: abab baba abba baab
Seems like cookies are disabled on this browser, please enable them to open this website
Maximum Palindromes
You are viewing a single comment's thread. Return to all comments →
I don't think that the test cases are correct. For the second test case:
abab 1 1 4
The right answer according to HackerRank is 2. But I think that the right answer is 4: abab baba abba baab