Sliding Window

Find All the Start Indicies of an Anagram in a Separate String

Given two strings `s` and `p`, find all the start indices of `p`'s anagrams in `s`.

Read

Count Number of Substrings with Only 1s

Given a binary string, count no of substrings with only 1's.

Read