logo
Interview
    Interview Guide
    Coding Problems List
Sponsored: Coursera
Problems

Palindrome Partitioning

Problem

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

Return all possible palindrome partitioning of s.

Example

Given s = "aab", return:

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

Online Judge