cosmos
cosmos copied to clipboard
All palindromic partitions of a string using backtracking
This is a(n):
- [x] New algorithm
- [ ] Update to an existing algorithm
- [ ] Error
- [ ] Proposal to the Repository
Details:
Given a string s, partition s such that every string of the partition is a palindrome. Return all possible palindrome partitioning of s.
Input : s = "bcc" Output : [["b", "c", "c"], ["b", "cc"]]