Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
for the python solution, why is it result_indices.append(window_start) and not w...

Jared

Jul 20, 2022

for the python solution, why is it result_indices.append(window_start) and not window_end?

0

0

Comments
Comments
Design Gurus
Design Gurus3 years ago

Because we need to return the starting index of the anagram. From the problem statement:

Write a function to return a list of starting indices of the anagrams ...

On this page