Fundamentals
/
Partitioning A String Into Palindromes
⏸
00:00
↻
← Prev
Next →
▶
Question
Prereq: Backtracking
Given a string s, find all ways to partition it so that every substring is a palindrome. Return all possible palindrome partitions of s.
Examples
Example 1
Input
aab
Output
[
["aa","b"],
["a","a","b"]
]
▶
Understand
▶
Approach
▶
My Code
▶
Reference Solution
Compare
20