Skip to content

First Sliding window example and the question in leetcode does not correlate #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jerrycaffe opened this issue May 14, 2024 · 0 comments

Comments

@jerrycaffe
Copy link

I discovered that while talking about the brute force solution i.e naive solution while explaining the sliding window patter, the leetcode example https://leetcode.com/problems/maximum-average-subarray-i/description/ is expected to return a single result of the maximum average, but the code example within the tutrorial returned the average of all k values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant