5.Palindrome Partitioning
Given a string s
, partition s
such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s
.
A palindrome string is a string that reads the same backward as forward.
Solution: (Backtracking)
Approach: * Splitting string at every possible point * If Left substring is palindrome checking it recursively for right substring
Last updated