Back to course home
0% completed
Vote For New Content
if the character going out was in hashmap, put it back in the hashmap??
Faraz
Mar 31, 2024
i dont quite understand this one properly, why we are adding it back to the frequency? my guess is to maintain the matched?? but if the pattern length is 3, and if frequency map contains 3 characters, and we are only decrementing its value, so does it matter we put it back or skip it?? because it will always be there with a lesser frequency maybe
0
0
Comments
Comments
Shubham Voraa year ago
How will you know the exact frequency of the particular character in the current window without maintaining proper frequency?
On this page