Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 276 Bytes

README.md

File metadata and controls

7 lines (4 loc) · 276 Bytes

This problem was asked by Google.

Given a string, split it into as few strings as possible such that each string is a palindrome.

For example, given the input string racecarannakayak, return ["racecar", "anna", "kayak"].

Given the input string abc, return ["a", "b", "c"].