Skip to content
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

Correct variable name in smallest sub array with given sum problem no: 1.2 #9

Open
bugudiramu opened this issue Mar 19, 2024 · 0 comments

Comments

@bugudiramu
Copy link

File: https://github.com/dipjul/Grokking-the-Coding-Interview-Patterns-for-Coding-Questions/blame/master/1.-pattern-sliding-window/1.2-smallest-subarray-with-a-given-sum-easy.md#L61

In line no: 61 it should be

minLen = Math.min(minLen, windowSize - windowStart + 1);

instead of

minLen = Math.min(minLen, windowEnd - windowStart + 1);
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