diff --git "a/\342\234\205 Pattern 01 : Sliding Window.md" "b/\342\234\205 Pattern 01 : Sliding Window.md" index fa3083a..b647eb5 100644 --- "a/\342\234\205 Pattern 01 : Sliding Window.md" +++ "b/\342\234\205 Pattern 01 : Sliding Window.md" @@ -679,7 +679,7 @@ function findStringAnagrams(str, pattern){ if(windowEnd >= pattern.length -1) { const startChar = str[windowStart] windowStart++ - if(endChar in charFreq) { + if(startChar in charFreq) { if(charFreq[startChar] === 0) { //before putting the character back //decrement the matched count