Globale Daten Interview Questions

7,982 globale daten interview questions shared by candidates

The first exercise was trivial and I let you take it. The second one was about coding the Fibonacci series. Here my code in Python: input= [4] i=1 for line in input: if line==0: fibonacci=[0] if line==1: fibonacci=[1] if line==2: fibonacci=[0,1,1] if line>2: fibonacci=[0,1,1] while i<line-1: fibonacci.append(fibonacci[-1]+fibonacci[-2]) i+=1 fibonacci[-1] The third one was a digit manipulation game. Below my code in Python: input=1818 digit=[] digit_r=[] digit_even=[] digit_odd=[] digit_double=[] for integer in str(input): digit.append(int(integer)) digit_r=digit[::-1] digit_even=digit_r[1::2] digit_odd=digit_r[0::2] digit_double=[int(x)+int(x) for x in digit_even] res = sum(digit_odd) + sum(digit_double) res The provided codes match the expected results. Just make sure you import sys and use stdin when implementing your code in CodeVue. Good luck!
avatar

Global Quantitative Analytics Analyst

Interviewed at J.P. Morgan

3.9
Feb 19, 2022

The first exercise was trivial and I let you take it. The second one was about coding the Fibonacci series. Here my code in Python: input= [4] i=1 for line in input: if line==0: fibonacci=[0] if line==1: fibonacci=[1] if line==2: fibonacci=[0,1,1] if line>2: fibonacci=[0,1,1] while i<line-1: fibonacci.append(fibonacci[-1]+fibonacci[-2]) i+=1 fibonacci[-1] The third one was a digit manipulation game. Below my code in Python: input=1818 digit=[] digit_r=[] digit_even=[] digit_odd=[] digit_double=[] for integer in str(input): digit.append(int(integer)) digit_r=digit[::-1] digit_even=digit_r[1::2] digit_odd=digit_r[0::2] digit_double=[int(x)+int(x) for x in digit_even] res = sum(digit_odd) + sum(digit_double) res The provided codes match the expected results. Just make sure you import sys and use stdin when implementing your code in CodeVue. Good luck!

Viewing 2161 - 2170 interview questions

Glassdoor has 7,982 interview questions and reports from Globale daten interviews. Prepare for your interview. Get hired. Love your job.