Grokking-the-Coding-Interview-Patterns-for-Coding-Questions icon indicating copy to clipboard operation
Grokking-the-Coding-Interview-Patterns-for-Coding-Questions copied to clipboard

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

Open bugudiramu opened this issue 1 year ago • 0 comments

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);

bugudiramu avatar Mar 19 '24 13:03 bugudiramu