Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
Can you add the brute force, swapping the max for count does not work on the lee...

Shan

Jul 20, 2022

Can you add the brute force, swapping the max for count does not work on the leetcode problem

2

0

Comments
Comments
R
Ray 3 years ago

I came up with a basic, brute force solve, but my solve de-dupes the substrings. So I only return "a" once in "abdbca", but the solution here returns "a" twice.

S
Shan 3 years ago

From the authors of this course, this solution should be added here for brute force https://discuss.educative.io/t/count-of-palindromic-substrings/9558

On this page