Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 487 Bytes

0131-palindrome-partitioning.adoc

File metadata and controls

28 lines (19 loc) · 487 Bytes

131. Palindrome Partitioning

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"]
]
link:{sourcedir}/_0131_PalindromePartitioning.java[role=include]