Every way to cut into palindromes
Cut the string s into consecutive pieces so that every piece is a palindrome: it reads the same backwards, like "noon" or "b". Return every such way to cut it, each one as the list of its pieces from left to right. A single character is always a palindrome, so there is at least one answer. Return each way once; the ways may come in any order, but the pieces inside a way keep their order.
1 ≤ len(s) ≤ 20, lowercase a–z.
Besides the tests, one large input (a 19-letter string) with a ~200 ms limit (scaled to your device's speed): brute force won't pass.
Examples
palindrome_cuts("aab")→[["a","a","b"],["aa","b"]]palindrome_cuts("racecar")→[["r","a","c","e","c","a","r"],["r","a","cec","a","r"],["r","aceca","r"],["racecar"]]palindrome_cuts("z")→[["z"]]