Analyst Intern Interview Questions

7,039 analyst intern interview questions shared by candidates

You are given a function f(n) that does the following: if n is odd, it returns 3n+1, otherwise n/2. What is the smallest value of n such that this function does not eventually give a value of 1 with repeated recursive calls of each output?
avatar

Quantitative Trading Analyst Intern

Interviewed at Belvedere Trading

4.2
Aug 22, 2024

You are given a function f(n) that does the following: if n is odd, it returns 3n+1, otherwise n/2. What is the smallest value of n such that this function does not eventually give a value of 1 with repeated recursive calls of each output?

Viewing 361 - 370 interview questions

Glassdoor has 7,039 interview questions and reports from Analyst intern interviews. Prepare for your interview. Get hired. Love your job.