ZipRecruiterCodingMembers
Longest Subarray with Frequency Cap (Retail Sales Pattern)
Members only
An online-assessment style array problem set in a retail inventory context: find the longest stretch of sales data that respects a limit on how often any single value may repeat. It rewards a clear argument for why the search can be done in linear time and careful handling of degenerate limits.
SWE
medium
array
hashmap
sliding-window
two-pointer
Frequency
Single report
Last asked
—
Stage
oa
Members get
- Full problem statement
- 3 progressive hints
- Step-by-step approach
- Full solution with code
- 3 common pitfalls
- 6 talking points
- 5 follow-up questions with answer directions
- Preparation drills
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
