Back to course home
0% completed
Vote For New Content
I keep going through these sliding window problems and can't really seem to spot...
Perry Robinson
Mar 4, 2022
I keep going through these sliding window problems and can't really seem to spot a pattern other than it's a sliding window pattern. How do you know if you will need to use an array or a hashmap in your solution? It would be more helpful if there was boilerplate template for the sliding window pattern that you could always start with and adjust to fit the problem.
2
0
Comments
Comments
N
Nick 4 years ago
I agree with you. What I'm seeing with sliding windows that need a hashamp are when you are dealing with UNIQUE number of characters in your array. The first couple of problems didnt worry about how many of X you had. Compared to the later problems where you can only...
On this page