Quick Overview

An object on a grid changes direction whenever a timestamped action arrives and moves one cell per time unit until a blocked cell or the grid edge stops it. The task asks for its cell at a given end time, testing precise reading of the rules, including that dot cells are obstacles, and efficient handling of very large timestamps.

Final Grid Position Under Timestamped Direction Changes With Dot Obstacles

Company: Hudson River Trading

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Technical Screen

Overview: An object on a grid changes direction whenever a timestamped action arrives and moves one cell per time unit until a blocked cell or the grid edge stops it. The task asks for its cell at a given end time, testing precise reading of the rules, including that dot cells are obstacles, and efficient handling of very large timestamps.

Read the full Hudson River Trading Software Engineer interview experience this question came from

Final Grid Position Under Timestamped Direction Changes With Dot Obstacles

Hudson River Trading • Software Engineer

Loading…