What quant interviews listen for
transcript
A quant interview looks like any coding round. But it listens for four habits. Here they are.
Prices are whole numbers, never decimals. Totals use sixty-four bits. Fractions are compared by multiplying out.
The first question finds the best profit. The follow-up asks how many ways. A map of earlier prices can count them.
Prices arrive as a stream, in order. Keep a few numbers of memory. Aim for a single pass.
State the time and the memory first. Name the edge case that matters. Say what assumption would break it.
The interviewer talks with you throughout. Welcome their questions. Stay exact in every answer you give.
Take the prices three, one, one, six and six. The best profit is five, from buying low and selling high. Counting the ways gives four pairs of days.
The interviewer changes one rule next. They ask what it costs you. Answer with the new time and memory.
Four habits make a strong round. Practise them aloud. Full breakdown in the lecture.