0132. Palindrome Partitioning II
https://leetcode.com/problems/palindrome-partitioning-ii
Description
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:
Example 2:
Example 3:
Constraints:
1 <= s.length <= 2000
s
consists of lower-case English letters only.
ac
Last updated
Was this helpful?