Follow us on Facebook and get an exclusive discount!

Follow us
Company Interviews

Quant Firm Software Engineer Interview Guide 2026

Last updated: November 11, 2026|9 min read|By Alexandra Moore
Quant Firm Software Engineer Interview Guide 2026

Quant firms like Two Sigma, Jane Street, and Citadel don't conduct interviews like the big tech companies. Here, we'll take a step-by-step look at a real question Jane Street asked software engineers in phone interviews, so you know what to expect and are prepared.

The question is called Memo. Jane Street used to ask this often, but has stopped asking now, so there's nothing here worth memorizing! The idea is to look at one case in detail rather than memorize the answer.

Getting going

The code will be written by both of you in the same online editor, and you get the link either before the interview or during it. These days the technical interview happens on Zoom.

Pseudocode is not accepted: the code has to be in an actual programming language. You pick which one, but their strong advice is to go with the one your hands know best, the one where your best solution will come out (and switching halfway through the problem is totally fine!). Basic APIs in your language and common data structures should not be foreign to you.

One important point: picking OCaml, or any other functional language, will not earn you extra marks. Don't choose it to please them. What they want is you on your best day, so write in whatever feels natural. If OCaml is not your strongest language, skip it.

Ready to ace your next interview?

InterviewMan gives you real-time AI answers during live interviews — undetectable on Zoom, Meet, and Teams.

Try InterviewMan Free

If halfway through you notice you've seen this question before, say so and they will switch it. And you'll see why: the question you knew from the start doesn't say much about you!

Part one: basic code

Memoization, have you heard of it? Do you know how to explain this exactly? If this is your first time hearing this word, don't worry, they will explain what it is. (Wikipedia has a good introduction.)

Let's take

f
, an
int -> int
function. Its output depends on nothing but the input, but computing it is very expensive. You need to write another function called
g
, of the very same type, that gives exactly the same result for any x, which means
g(x) = f(x)
. The difference is that
g
will only do the expensive calculation once per input. This is the so-called memoized version.

At this point, the solution they usually expect is to keep finished results in a hash map. In OCaml it can be written like this:

let memo f =
  let cache = Hashtbl.create 256 in
  (fun x ->
     match Hashtbl.find cache x with
     | None ->
        let y = f x in
        Hashtbl.add cache ~key:x ~data:y;
        y
     | Some y -> y)

(No one is going to ask you for OCaml or expect it from you. OCaml is used here only as an example. You might point out that the code checks a value and then sets it with no lock, so it is surely not thread-safe. And you are right! But in this question we will leave the topic of re-entry aside and focus on the main idea.)

And whatever API or data structure you use in your solution, be prepared to be asked how it works internally and how complex its operations are.

Part two: think about your code and improve it

What problems might the function you wrote in Part 1 cause? Imagine it goes out to production, and then we notice that the application begins to work much slower than before. This is the opposite of what we wanted from memoization! Do you see what's wrong?

The big drawback is memory. If an application calls

f
with many different inputs, each result stays in the hash map and never leaves it. This means a memory leak! What ideas do you have on how to fix this?

The logical solution is to specify a maximum size for the hash map, and when it is full, the oldest entry is taken out of it, and this is called a FIFO. Compare it to other eviction methods: what does each one gain you and what does it cost you? What would you change in the memo function to use FIFO? And try to keep the eviction at O(1).

This has several solutions. Here is a good one: you use a queue next to the hash map. Every time you put a new result into the hash map and its size exceeds the limit, you pop the first element from the queue and remove it from the hash map.

They don't just look at the code. They also watch how you explain your thinking about the problem, and what ideas you bring to improve it. Not every candidate has to land on O(1) in the first minute. What matters to them is that you think out loud as you solve, and they get to see where your mind takes you.

Part three: going further

In many use cases FIFO turns out slow or wasteful, and you have surely noticed that. So what if we want to replace it with LRU (evicting whatever was used least recently) and we still need the most efficient implementation possible? What will you do?

Also, there is more than one solution here. The simplest thing is that you put each value in a hash map with the moment it was last used, and go through the table one by one each time it comes to deletion. This is O(n). With a min-heap you can get to O(log n) and also O(1) with a doubly linked list.

Note on the most efficient solution: to achieve O(1), create a doubly linked list and let each value in the hash map refer to one of its elements. So, when you get a value from the cache via a hash map, you can remove it from its place in the list and put it at the beginning, and the whole process takes O(1). For O(1) removal too, keep one more pointer, aimed at the list's tail.

Few people think of the linked list trick on the spot, so it's fine if it didn't occur to you at first. You may be asked to write part of the solution, but this part is intended for further discussion to show your ideas for improving the complexity. They will settle with you how deep into the details to go, so don't worry about that.

Ready to ace your next interview?

InterviewMan gives you real-time AI answers during live interviews — undetectable on Zoom, Meet, and Teams.

Try InterviewMan Free

The question also has other branches, which they keep going through until time runs out.

What are they looking for?

They work through a problem with you in an interview to see how you would do if you worked with them. How you get there matters far more than the solution you hold when the interview ends. They don't want only a "yes" or "no" answer to the question "did you find a solution?" They want to see how you act in the face of a hard problem.

For example: one candidate didn't finish the problem, but his code was clean and understandable, he explained things well, and came up with smart ideas and observations along the way. Another candidate finished every part quickly, but his code was jumbled and difficult to understand. It is quite possible that the first one will get preference.

So there is no fixed list where finishing it means you pass. But there are some general guidelines:

The first part should be solved without errors and in a relatively short time by anyone who is going to pass. If there is anything in this part that you are not familiar with, it may be better to wait a while before applying and give yourself longer to get ready. If you're getting ready for a coding screen on HackerRank, like the one that Two Sigma starts with, there's a page about what HackerRank sees.

Most people who pass finish all of part two before time runs out. The strongest also close part three with a full solution, but if the third part is not completed, this does not mean that rejection is coming! Again, what counts is what happens while you are solving, not what is written at the end. Talking out loud is half of the assessment, and during the video call, InterviewMan hears the question, and shows you the answer on the screen while you speak so you can continue talking.

Don't share the question afterwards

The goal is for them to see you facing a hard problem and to walk with you step by step until a solution emerges. If you had the question before the interview, whether you found it online or a friend who applied earlier told you, the interview doesn't do its job. Then all they can see is you coding up something you already grasped and solved, and that's just a small part of what they want to know. And now that you've read this, if they asked you Memo, they would hardly learn anything from you!

So they ask that you keep the interview question to yourself, either in casual conversation or online.

What comes next

The answer with the result usually comes within a week. If they're busy it might be a little delayed, but 10 days without a reply is not normal, so send them a message and remind them.

If things went well in the interview, the next step will be a full day of interviews, run almost like the phone interview, and all the questions will be technical. If system design is coming up for you, start with this guide.

Applying to Jane Street

Applying is easy: they only need a CV or resume. If another company has made you an offer and you worry the timing won't work out, tell them early! They also have a well-known view on exploding offers, that is, offers for which you have a very tight deadline: they don't do them, even though they know that many companies do them to attract people.

Download: InterviewMan for Mac, Windows, iPhone, Android and web ($12/mo on the annual plan or $30/mo, with a one-time 20-minute free trial and no card)

Ready to Ace Your Next Interview?

Join 570,000+ professionals using InterviewMan to get real-time AI assistance during their interviews.

Related Articles

Try InterviewMan Free

AI interview assistant. Undetectable.

Get Started