s1
and the current window in s2
.s1
and the window.s2
(of size s1.length
) and update the frequency array and count.s2
one character at a time, updating the frequency array and count for the entering and exiting characters.true
.s2
is reached without the count reaching 26, return false
.