Top 50 Sliding Window Interview Questions
The most frequently asked Sliding Window questions across all roles and companies, ranked by real interview frequency. Updated daily.
Compute maximum values for every fixed-size telemetry window using a monotonic deque in O(n) time.
Hewlett Packard Enterprise Development
ABC
ABC FamilyUse a sliding window and hash map to find the length of the longest substring without repeated characters.
Capital One
Adobe
MetaCalculate every fixed-size moving average for Arista EOS telemetry samples using an O(n) sliding window.
Nerdwallet
Umitron Norway
Cerebras SystemsFind the longest substring without repeated characters using a sliding window and last-seen index map.
CodeSignal
PhonepeFind the maximum sum of K consecutive energy readings using a fixed-size sliding window.
Wise. Energy
Petuum
Interactive Process TechnologyFind the longest contiguous Compass search session containing at most k distinct neighborhoods using a sliding window.
Compass
Ramp
VerilyCompute each fixed-window stock price average in O(n) time using a rolling sum.
Motorola
CitigroupUse a monotonic deque to find the maximum value in every fixed-size PlanGrid activity window in O(n) time.
Plangrid
AutodeskHHiverSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Compare normalized character signatures to determine whether each pair of strings is an anagram.
AdobeCalculate the sum of integers from 1 to 1,000,000 using PostgreSQL aggregation and filtering.
Virtu Financial