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

0% completed

Vote For New Content
I feel this problem needs another example such as:s="ab", p="a"This additional e...

nrstnbr

Mar 14, 2022

I feel this problem needs another example such as: s="ab", p="a"

This additional example makes it clear that you can't always create a sliding window to the end of the array and shrink from the beginning of the array.

I tried my solution in leetcode and it failed on this exact example but 100% would've worked on the examples you have here.

1

0

Comments
Comments

On this page