RogerWaldron / gtci

Javascript Solutions to Grokking the Coding Interview: Patterns for Coding Questions
0 stars 0 forks source link

Learn sliding window pattern #1

Open RogerWaldron opened 2 years ago

RogerWaldron commented 2 years ago

Sliding Window Pattern

Applies when with Arrays or Linked Lists you are asked to find or calculate something among all the subarrays or sublists of a given size.

Sorted easiest to hardest

Subarray

Substring

Problem Challenge