Skip to content

Commit 3cd5674

Browse files
Fix: - variable name was not mapped correctly
1 parent b49febc commit 3cd5674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

✅ Pattern 01 : Sliding Window.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ function findStringAnagrams(str, pattern){
679679
if(windowEnd >= pattern.length -1) {
680680
const startChar = str[windowStart]
681681
windowStart++
682-
if(endChar in charFreq) {
682+
if(startChar in charFreq) {
683683
if(charFreq[startChar] === 0) {
684684
//before putting the character back
685685
//decrement the matched count

0 commit comments

Comments
 (0)