Palindrome Partitioning
Medium
Recursion & Backtracking
Partition a string so that every substring is a palindrome. Print all possible partitions, one per line, parts separated by a single space, in the order found by choosing the shortest first part first.
Constraints
1 <= len(s) <= 16 Lowercase letters
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.