Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 520 Bytes

0131-palindrome-partitioning.adoc

File metadata and controls

29 lines (20 loc) · 520 Bytes

131. Palindrome Partitioning

{leetcode}/problems/palindrome-partitioning/[LeetCode - 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]