Jane Street logoJane Street
CodingMembers

Detect Registered Button Sequences in a Live Key Stream

Members only

An object-design and string-matching question about reacting to registered button sequences as presses arrive one at a time. The challenge is making each key press cheap no matter how many sequences are registered, and being explicit about what happens when several could match.

SWE
medium
trie
string
streaming
object-design
java
Frequency
Single report
Last asked
—
Stage
onsite-coding · phone-screen

Members get

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