From 3cd5674f149e4133661bcd770aaff13550e88f0f Mon Sep 17 00:00:00 2001 From: Adarsh Gupta <73733229+adarsh-gupta101@users.noreply.github.com> Date: Fri, 6 Sep 2024 00:42:13 +0530 Subject: [PATCH] Fix: - variable name was not mapped correctly --- "\342\234\205 Pattern 01 : Sliding Window.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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