Given a string s, partition it such that every substring is a palindrome. Return all possible partitions.
Input: s = 'aab' Output: [['a','a','b'],['aa','b']]
Unlock hints progressively — start gentle, go deeper only if needed.
Level 1: Gentle Nudge
A subtle direction
Level 2: Approach
The algorithm to use
Level 3: Detailed
Step-by-step guidance
to save progress and use AI features