Find All Anagrams in a String
This is the canonical fixed-size sliding window problem. The pattern of maintaining two frequency arrays (or maps) and sliding a window of fixed size appears in many interview problems at ByteDance and other companies.
Enable JavaScript for the full StreamPrep guide.