Given a string, find the minimum number of cuts required to partition it into palindromic segments.
Explanation: The string 'abcba' is a palindrome and does not need any cuts.
Explanation: The string can be partitioned with one cut into segments 'abcba' and 'd', both of which are palindromes.
String edit distance, palindrome partitioning
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak