
Desicription
Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
Example:
1 |
Input: "aab" |
Solution
1 |
class { |

Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
Example:
1 |
Input: "aab" |
1 |
class { |
近期评论