Count substrings with equal number of 0s 1s and 2s July 8, 2019 16 32 64 128 Count substrings with equal number of 0s 1s and 2s leetcode 1358. number of substrings containing all three characters 2506. count pairs of similar strings Longest common substring javascript