neetcode-gh/leetcode

Bug Report for longest-repeating-substring-with-replacement

Closed this issue · 1 comments

Bug Report for https://neetcode.io/problems/longest-repeating-substring-with-replacement

I think Hint 2 is misleading, when given this input:

AAAA BCBDBEBFB k = 1

It's not THE string but the running window string.

Thanks for the feedback! Hint-2 is an extension of Hint-1. You can see that reading hint-2 after hint-1 doestn't feel wrong as "the string" just a way of saying an example.