Trader Intern Interview Questions

8,648 trader intern interview questions shared by candidates

Write a function that, given any positive integer input, returns the number of steps needed to get to the closest Fibonacci number, where each step is either adding or subtracting 1 (i.e. x+1 or x-1). E.g. If x = 15, the function should return a value of 2 (since 15 - 1 - 1 = 13).
avatar

Frontier Trader

Interviewed at Virtu Financial

4
Sep 15, 2020

Write a function that, given any positive integer input, returns the number of steps needed to get to the closest Fibonacci number, where each step is either adding or subtracting 1 (i.e. x+1 or x-1). E.g. If x = 15, the function should return a value of 2 (since 15 - 1 - 1 = 13).

Viewing 7681 - 7690 interview questions

Glassdoor has 8,648 interview questions and reports from Trader intern interviews. Prepare for your interview. Get hired. Love your job.