All Companies

Hudson River Trading Interview Questions

58 real interview questions at Hudson River Trading.

Showing 1–30 of 58 questions

1

How would you design a system to route network packets between a central hub and multiple node servers?

Software EngineerSoftware Engineer
2

Given that a survey asks each student to report the size of their room and there is no other information available, how would you estimate the average room size?

Software EngineerDeveloper
3

Compare a sorted map and a hashmap, including their time complexities. Explain how a hashmap works and discuss strategies to resolve hash collisions.

Software EngineerSoftware Engineer
4

Given two dates, calculate the number of days between them.

Software EngineerSoftware Engineer
5

How does a dictionary work under the hood in Python?

Software EngineerSoftware Engineer
6

What is the difference between a vector and a linked list?

Software EngineerSoftware Engineer
7

Implement the stoi (string to integer) function in C, which converts a string representing an integer into its numeric value.

Software EngineerSoftware Engineer
8

Given a race track with 5 lanes and 25 bunnies, with no timer and only knowing relative order per race, how many races are required to determine the top 3 fastest bunnies?

Software EngineerSoftware Engineer/Developer
9

How does Java implement garbage collection?

Software EngineerSoftware Engineer/Developer
10

Given an array of integers, find two numbers such that they add up to a specific target number. Follow up: What if the data type is double instead of int?

Software EngineerSoftware Engineer/Developer
11

How do you implement multi-threading in an environment that does not provide kernel-level threading support?

Software EngineerSoftware Engineer/Developer
12

1. Let X and Y be independent and identically distributed standard normal random variables. What is the probability that Y > 3X? Follow-up: Given that X > 0, what is the probability that Y > 3X?

Software EngineerAlgorithm Developer
13

You have three sock drawers: one contains red and blue socks, another contains blue and green socks, and the third contains green and red socks. What is the expected number of socks you must draw to be certain about which drawer is which, assuming each drawer has a large and equal number of each color?

Software EngineerAlgorithm Developer
14

(1) A 3x3x3 cube has its entire outer surface painted red. After cutting it into 27 unit cubes, one piece is selected at random and placed on a table so that five faces are visible (white). What is the probability that the remaining hidden face is red? (2) Let X be the sum of 100 rolls of a fair six-sided die, and let Y be the number of heads in 600 flips of a fair coin. What is the probability that X is greater than Y, i.e., Pr(X > Y)? (3) Place N points randomly on a circle. What is the probability that all N points lie within a semicircle?

Software EngineerAlgorithm Developer
15

Write a parser that can evaluate mathematical expressions given as strings.

Software EngineerAlgorithm Developer
16

We draw a person at random from the street. Then we continue drawing people, one at a time, until we find someone taller than the first person. What is the expected number of additional draws needed before encountering a person taller than the first?

Software EngineerAlgorithm Developer
17

Given an integer, find a list of unique odd numbers in ascending order whose sum is maximized and does not exceed the given integer. Return this list.

Software EngineerAlgorithm Developer
18

Given an array of length n, design an efficient algorithm to find the second largest number. The number of comparisons should be n + O(log n).

Software EngineerAlgorithm Developer
19

Design a data structure that supports push() and randompop() operations. Additionally, modify the data structure to support push() and weighted_randompop(), where the probability of popping an element is proportional to its assigned weight.

Software EngineerAlgorithm Developer
20

X and Y are independent and identically distributed standard normal random variables. What is the probability that Y > 3X?

Software EngineerAlgorithm Developer
21

You have a plate of spaghetti with n separate spaghetti strands (each with two free ends). You randomly pick two free ends and tie them together, repeating this process until no free ends remain. What is the probability that you end up with a single giant loop consisting of all the original spaghetti strands?

Software EngineerAlgorithm Developer
22

Given a sequence of n elements, how would you find the kth largest element?

Software EngineerAlgorithm Developer
23

If I have a jar with 1,000 coins and one of them is double-headed, I pick one coin at random and flip 10 heads in a row. What is the probability that I picked the double-headed coin?

Software EngineerAlgorithm Developer
24

Given a function that takes a sentence as a string, write the missing conditions in the if/else statements to return 'digit' if the first character is a number, 'Upper' if it is an uppercase letter, or 'Lower' if it is a lowercase letter.

Software EngineerAlgorithm Engineer
25

Find the longest sequence of unique numbers in a binary tree starting at the root node. That is, find the longest path from the root where no number appears more than once.

Software EngineerAlgorithm Engineer
26

Implement a system that filters a set of trades based on their timestamps and calculates the corresponding profits.

Quant ResearcherQuantitative Researcher
27

How many times do you expect to roll a die before you get a 1 on top?

Quant ResearcherQuantitative Researcher
28

Given three bowls: one contains two blue balls, one contains two red balls, and one contains one red and one blue ball. If you draw one blue ball from a bowl, what is the probability that the next ball from the same bowl is also blue?

Quant ResearcherQuantitative Researcher
29

Implement a pool allocator in C++.

Software Engineer InternSoftware Engineer Intern
30

How does push_back work in C++? What are its time complexities and internal workings? What are the differences between a thread and a process?

Software Engineer InternSoftware Engineer Intern

Want the full solutions?

Get detailed walkthroughs for all 58+ Hudson River Trading questions with Quant Blueprint.

Get Started