@Test public void testBreakIntoPalindromesGreedy() { PalindromeHelper helper = new PalindromeHelper(); char[] text = "abbacabb".toCharArray(); PalindromeGroup group = helper.breakIntoPalindromes(text, 0, text.length); assertEquals("a", group.getStrings().get(0)); assertEquals("bbacabb", group.getStrings().get(1)); }
public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); }
PalindromeHelper { public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); } }
PalindromeHelper { public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); }  }
PalindromeHelper { public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); }  static boolean isPalindrome(char[] text, int start, int end); PalindromeGroup breakIntoPalindromes(char[] text, int start, int end); }
PalindromeHelper { public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); }  static boolean isPalindrome(char[] text, int start, int end); PalindromeGroup breakIntoPalindromes(char[] text, int start, int end);  }