cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

All palindromic partitions of a string using backtracking

Open Sanyam96 opened this issue 8 years ago • 0 comments

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"]]

Sanyam96 avatar Oct 15 '18 05:10 Sanyam96