Concept Flow - Palindrome Partitioning Using Backtracking
Start with empty partition
Choose substring from start
Check if substring is palindrome
Yes No
Add substring to partition
Recurse with remaining string
If no string left
Save current partition
Backtrack: remove last substring
↩Back to choose next substring
We try all substrings from the start, check if palindrome, add to partition, recurse on rest, and backtrack to explore all partitions.
