Back to course home
0% completed
Vote For New Content
Is there a specific reason why we didn't decrement max_repeat_letter_count in th...
Richard Yuan
Apr 27, 2022
Is there a specific reason why we didn't decrement max_repeat_letter_count in the previous problem, but we decrement max_ones_count in this problem? Don't they represent the same thing in their respective problems?
1
0
Comments
Comments
P
Pete Stenger3 years ago
I think this solution misrepresents max_ones_counts as it should actually be ones_in_window.
V
Viktor 3 years ago
Looks like here max_ones_count combines both roles "count of ones in window" (to avoid using a hashmap) and "max repeats of ones ever"
On this page