s1_count, s2_count = [0] * 26, [0] * 26 # create empty lists # idea is to store the 26 letters of the alphabet for i in range(len(s1)): # iterate through the first couple letters in s2 so that # we ...
In just a few short months, Marathon has minted a highly quotable line: “Escape will make me God.” It’s also, according to ...
1. Generate all permutations of `s1`. 2. Check if any permutation exists as a substring in `s2`. 1. Create frequency arrays of size 26 (for lowercase letters). 2. Count frequencies of characters in ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results