Flexport logoFlexport
CodingMembers

Port Congestion Detector - Peak Window Analysis

Members only

A logistics-flavored coding question about spotting busy periods in a stream of timestamped events at a port. The tricky part is reporting each busy stretch once rather than once per event, and keeping the work efficient as the input grows.

SWE
medium
array
two-pointer
sliding-window
Frequency
Single report
Last asked
—
Stage
onsite-coding

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...