Quantitative developer Interview Questions | Glassdoor

# Quantitative developer Interview Questions

121

quantitative developer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

Jul 31, 2009

Jan 9, 2014

Jul 31, 2009

Apr 30, 2012

### Quantitative Developer at Tower Research Capital LLC was asked...

Oct 15, 2010

Dec 4, 2010
 Given a m*n matrix with values -1 or 1, try to flip the values in a given row and a given line efficiently.3 Answersfor(i=0;iR: given row, C: given column for i = 0 to m: Matrix(i, C) *= -1 for j = 0 to n: Matrix(R, j) *= -1 Matrix(R, C) *= -1you can get even more efficiency if you go down to the bit level, since multiplication is expensive. python code follows: let's call the matrix M, and the given row and column r,c respectively for i in range(0,m): M[i][c] = ~M[i][c] + 1 for j in range(0,n): M[i][r] = ~M[i][r] + 1

### Quantitative Developer at AKUNA CAPITAL was asked...

May 14, 2016

Nov 9, 2016
 Given a char buffer, write a malloc implementation.3 Answerschar* a = (char*) malloc(4096);char * a = (char*) malloc ((4096 + 1)*sizeof(char))Write the "implementation" of malloc, not malloc'ing a char[]... In general you need to record the size in this "heap", then return a pointer pointing to the block right after the size.

### Quantitative Developer at AKUNA CAPITAL was asked...

Feb 7, 2018
 keep throw a coin if two head A will win if first is head second is tail B will win, keep throwing until have a winner. who has better chance to win?2 AnswersThe probability of both A and B winning the game is same irrespective of the number of turns taken to win P(Win,A)= 1/4 = P(Win,B)In this case it's 50/50. HH - A wins HT - B wins TTHH - A wins TTHT - B wins THH - A wins THT - B wins It get's interesting if it's TH rather than HT

### Quantitative Developer at AKUNA CAPITAL was asked...

May 14, 2016
 What is the complexity of a heap insert?2 AnswersO(log(2))O(Log(n))
110 of 121 Interview Questions