Software Engineer • Junior-Level
Software Engineer • Junior-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
I interviewed with Hudson River Trading for a 2027 New Grad Software Engineer position focused on C++. The process began with a 70-minute online assessment containing four coding questions, followed by a 30-minute technical phone screen approximately one week later.
The online assessment included problems involving maximum diamond-shaped submatrix sums and overlapping streetlight coverage. I received a perfect score and advanced to the phone screen, where I was asked to simulate a ball moving through a maze as the board changes its tilt direction over time. Although I completed the simulation and discussed an optimization, I received a rejection three days after the interview.
Interview Details
Round 1 — Online Assessment: Four Coding Problems
The first two questions were relatively straightforward. The third and fourth questions involved grid processing and interval coverage.
Question 3 — Maximum Sum Inside a Diamond-Shaped Region
The third problem involved a two-dimensional integer matrix. Given an m × n matrix, define a diamond-shaped region using a center coordinate and a radius. The task was to calculate the sum of all numbers contained within the diamond and determine the maximum possible sum among all valid diamond regions.
- The input is a two-dimensional array of integers.
- A diamond is specified by its center and radius.
- Calculate the sum of all matrix values contained within a diamond.
- Consider all valid diamond regions.
- Return the largest diamond sum.
The main challenge was correctly identifying which cells belonged to each diamond-shaped region and comparing the sums of valid candidates.
Question 4 — Find the Point Covered by the Most Streetlights
The fourth question involved streetlights positioned along a one-dimensional line. Each streetlight has two properties:
c: The center coordinate of the streetlight.r: The illumination radius.
A streetlight illuminates every point in the inclusive interval: [c - r, c + r]. Given a collection of streetlights,
Unlock Full Details
Create a free account to unlock this interview experience report.