Grokking Dynamic Programming Patterns for Coding Interviews
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
R
Ray 4 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