Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 398 Bytes

palindrome-partitioning.md

File metadata and controls

14 lines (11 loc) · 398 Bytes

Given a string s, partition s such that every substring of the partition is a palindrome.

Return all possible palindrome partitioning of s.

Example:

Input: "aab"
Output:
[
  ["aa","b"],
  ["a","a","b"]
]