Count every substring of a string that reads the same forwards and backwards — and get past the O(n²)-memory table.
Count every substring of a string that reads the same forwards and backwards — and get past the O(n²)-memory table.
The discussion opens with the full question.