why to do for suufix is"nt that all will be covered in prefixes
Why to do for suffix
No, it is possible the (i,j) is required pair using prefix and (i,k) will also be req pair using suffix.
Consider example = {“aacd”, “caa”, “dc”}
here consider “aacd” so for this the reverse of prefix “aac” is present, so “aacd” + “caa” is a palindrome.
here you can also see as the reverse of suffix “cd” is also present so “dc” + “aacd” is also a palindrome.
I hope your doubt is the same.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.