stochastic problems. prob distribution problem.
Quantitative Operations Associate Interview Questions
6,127 quantitative operations associate interview questions shared by candidates
Basic Probability and Statistics Linear Algebra and Convex optimization Easy coding questions
Probability and Sorting algorithms, Puzzles
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!
How did you come ut with that solution?
Citer les principaux différences entre Python et C++
What is dunder method in python?
Joint probability distributions
You have a sequence of real numbers, that satisfies the equation X_n+1 = 1/2*X_n + 3. What is the limit of this sequence when n goes to infinity?
Python String manipulation and reversal
Viewing 1741 - 1750 interview questions