131.Palindrome-Partitioning
131. Palindrome Partitioning
题目地址
https://leetcode.com/problems/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.
For example, given s = "aab",
Return
[
["aa","b"],
["a","a","b"]
]代码
Approach 1: Backtracing
Last updated
Was this helpful?