Sliding Window
8 animated solutionsMaintain a running window over an array or string, expanding and contracting its edges instead of recomputing. The go-to pattern for longest/shortest substring and subarray sums. Every problem below plays as an animated walkthrough with solutions in Python, Java and C++. Companies that ask these most: Citigroup, Adobe, HCL.