Palindromic Partitions

Installation

  • Python3

Task

Print all possible palindromic partitions in the given string. Please don’t consider the string case. Input: BorrowOrRob Output:

  1. B o r r o w O r R o b
  2. BorrowOrRob
  3. B orro w OrRo b
  4. B o rr o w OrRo b
  5. B orro w O rR o b
  6. B o rr o w O rR o b

How to run

python3 test1.python3

Test Cases Considered

  1. BorrowOrRob
  2. rotor
  3. 123321
  4. Arunima
  5. mississippi