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

0% completed

Vote For New Content

My solution using Counter and defaultdict

Enrique Fernández

Dec 11, 2024

0

5

0

Dec 11, 2024

My solution using hashMap

Sachin Dev S

Nov 3, 2024

0

7

0

Nov 3, 2024

if (windowEnd >= pattern.length() - 1) { // shrink the window

Sachin Dev S

Nov 3, 2024

0

2

0

Nov 3, 2024

My solution

Mohammed Dh Abbas

Jul 10, 2024

0

12

0

Jul 10, 2024

Question

arya.javadi80

Aug 26, 2023

1

17

0

Apr 1, 2024

Why is the case, where we find a character that is not in the hash map 'charFreq...

Meghana

Oct 2, 2022

0

20

1

Aug 18, 2023

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

Jared

Jul 20, 2022

0

11

1

Oct 31, 2022

For this question, if we find multiple matches, how come we don't repopulate the...

First

Apr 12, 2022

4

17

0

Apr 12, 2022

Assuming the input string and pattern is in lowercase alphabets, here is the gol...

Bipra

Feb 14, 2022

0

9

0

Feb 14, 2022

Why is matched compared to the number of keys in the charFrequency instead of th...

Dee

Feb 9, 2022

0

24

2

Oct 2, 2022