Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 302 Bytes

File metadata and controls

16 lines (10 loc) · 302 Bytes

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

Return all possible palindrome partitioning of s.

For example, given s = "aab",

Return

[
    ["aa","b"],
    ["a","a","b"]
  ]

Show Tags Backtracking