Palindrome Partitioning II
Input: s = "aab"
Output: 1
Explanation: The palindrome partitioning ["aa","b"] could be produced using 1 cut.Input: s = "a"
Output: 0Input: s = "ab"
Output: 11. 1 <= s.length <= 2000
2. s consists of lower-case English letters only.Basic Idea:
Java Code:
Last updated