Software Engineer • Senior-Level
Software Engineer • Senior-Level
High QualityPrep Other Coding Questions Asked by Hudson River Trading
Continue with targeted prep from Hudson River Trading's coding question bank.
Interview Summary
The HRT technical phone screen used a custom simulation problem in a CoderPad environment. Multiple players move along a one-dimensional road toward a finish line, while a moving watcher can temporarily force players to stop depending on which direction the watcher is facing.
The main complication was that the watcher periodically reverses direction at predefined timestamps. The task was to simulate or otherwise reason about the interaction between player movement, watcher movement, and direction changes, then determine how many players can reach the destination before a given time limit.
Interview Details
Coding — Moving Players and Direction-Switching Watcher A game takes place on a one-dimensional road that starts at position 0 and ends at position L. There are multiple players, each beginning at a specified position.
Every player:
- Can move only toward the right.
- Moves at a speed of one unit per second when allowed to move.
- Must remain stationary whenever they are being
Unlock Full Details
Create a free account to unlock this interview experience report.