Jane Street logoJane Street
CodingMembers

Check Two Message Streams Agree Per Message Type

Members only

An online-comparison problem: two streams of typed messages must agree on the order within each type while ignoring order across types, and the check should fail fast. The interesting part is choosing what to buffer and how to read the two sources when neither is guaranteed to line up.

SWE
medium
hashmap
queue
streaming
Frequency
Single report
Last asked
—
Stage
phone-screen · onsite-coding

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 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...