Solution to Palindrome Partitioning by LeetCode

15 Jul


Question Name: Palindrome Partitioning

One simple solution is as following. It is easy to understand. And it passed all the tests.

We could do it better! Do it! Do it better with Manacher’s algorithm! BUT K.I.S.S.

Leave a Reply

Your email address will not be published. Required fields are marked *